
Go to the source code of this file.
Classes | |
| struct | Mouse |
| Structure to store mouse state. More... | |
| struct | Input |
| Structure to store input state. More... | |
Macros | |
| #define | HANDLE_KEY_PRESSED(_input_id, _key) |
| Macro to handle key press events. | |
| #define | HANDLE_KEY_RELEASED(_input_id, _key) |
| Macro to handle key release events. | |
Enumerations | |
| enum | Keys { KEY_UP = 1 << 0 , KEY_RIGHT = 1 << 1 , KEY_DOWN = 1 << 2 , KEY_LEFT = 1 << 3 , KEY_JUMP = 1 << 4 , KEY_CROUCH = 1 << 5 , KEY_SPRINT = 1 << 6 , KEY_MENU = 1 << 7 , KEY_FLASHLIGHT = 1 << 8 , KEY_VALIDATE = 1 << 9 , KEY_INTERACT = 1 << 10 , KEY_FULLSCREEN = 1 << 11 , KEY_COUNT } |
| Enumeration of possible keys. More... | |
Functions | |
| void | default_input_settings () |
| Sets the default input settings for the application. | |
| void | init_input (Input *input) |
| Initializes the input structure. | |
| int | update_input (Input *input) |
| Updates the input state. | |