-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput.h
More file actions
24 lines (19 loc) · 664 Bytes
/
Copy pathInput.h
File metadata and controls
24 lines (19 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#ifndef H_INPUT
#define H_INPUT
#include <stdint.h>
#include <raylib.h>
#include "Debug.h"
#include "Constants.h"
/// @brief Handles user input.
/// @return An non zero integer indicating failure or zero indicating success.
int Input(void);
/// @brief Update mouse information.
/// @param M The mouse to update.
void UpdateMouse(Mouse* M);
/// @brief Detects a double click with the given interval and reports the location.
/// @param Interval The double click interval.
/// @param TouchPosition The position of the double click.
/// @return True if a double click was detected.
bool DoubleClick(uint16_t Interval, Vector2* TouchPosition);
#endif