Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Input.h
Go to the documentation of this file.
1#ifndef ULT_INPUT_H_INCLUDED
2#define ULT_INPUT_H_INCLUDED
3
4namespace Ult
5{
6
10
75
81extern bool gShouldQuit;
82
88void InitInput();
89
94void UpdateInput();
95
100void DeinitInput();
101
107bool IsButtonDown(const INPUT_BUTTON btn);
108
113bool IsButtonUp(const INPUT_BUTTON btn, const bool wasDown);
114
120void GetMousePosition(int* mx, int* my);
121
127bool GetWindowResize(int* width, int* height);
128
129} // namespace Ult
130
131#endif // ULT_INPUT_H_INCLUDED
132
void GetMousePosition(int *mx, int *my)
Definition InputSdl2.cpp:150
void InitInput()
Definition InputSdl2.cpp:67
void UpdateInput()
Definition InputSdl2.cpp:80
bool GetWindowResize(int *width, int *height)
Definition InputSdl2.cpp:156
INPUT_BUTTON
Definition Input.h:15
bool IsButtonUp(const INPUT_BUTTON btn, const bool wasDown)
Definition InputSdl2.cpp:145
bool IsButtonDown(const INPUT_BUTTON btn)
Definition InputSdl2.cpp:140
void DeinitInput()
Definition InputSdl2.cpp:135
bool gShouldQuit
Definition InputSdl2.cpp:9
@ BUTTON_LEFT_TRIGGER
Definition Input.h:18
@ BUTTON_RIGHT_SHOULDER
Definition Input.h:17
@ BUTTON_ESCAPE
Definition Input.h:70
@ BUTTON_G
Definition Input.h:50
@ BUTTON_MOUSE_RIGHT
Definition Input.h:33
@ BUTTON_2
Definition Input.h:36
@ BUTTON_M
Definition Input.h:56
@ BUTTON_T
Definition Input.h:63
@ BUTTON_7
Definition Input.h:41
@ BUTTON_N
Definition Input.h:57
@ BUTTON_0
Definition Input.h:34
@ BUTTON_MOUSE_LEFT
Definition Input.h:32
@ BUTTON_R
Definition Input.h:61
@ BUTTON_O
Definition Input.h:58
@ BUTTON_F
Definition Input.h:49
@ BUTTON_SPACE
Definition Input.h:71
@ BUTTON_8
Definition Input.h:42
@ BUTTON_C
Definition Input.h:46
@ BUTTON_J
Definition Input.h:53
@ BUTTON_LEFT_SHOULDER
Definition Input.h:16
@ BUTTON_B
Definition Input.h:29
@ BUTTON_ARROW_DOWN
Definition Input.h:25
@ BUTTON_1
Definition Input.h:35
@ BUTTON_9
Definition Input.h:43
@ BUTTON_P
Definition Input.h:59
@ BUTTON_ARROW_RIGHT
Definition Input.h:27
@ BUTTON_L
Definition Input.h:55
@ BUTTON_RIGHT_TRIGGER
Definition Input.h:19
@ BUTTON_I
Definition Input.h:52
@ BUTTON_BACK
Definition Input.h:23
@ BUTTON_6
Definition Input.h:40
@ BUTTON_Q
Definition Input.h:60
@ BUTTON_U
Definition Input.h:64
@ BUTTON_K
Definition Input.h:54
@ BUTTON_ENTER
Definition Input.h:72
@ BUTTON_Y
Definition Input.h:31
@ BUTTON_ARROW_LEFT
Definition Input.h:26
@ BUTTON_H
Definition Input.h:51
@ BUTTON_RIGHT_THUMB
Definition Input.h:21
@ BUTTON_4
Definition Input.h:38
@ BUTTON_S
Definition Input.h:62
@ BUTTON_ARROW_UP
Definition Input.h:24
@ BUTTON_LEFT_THUMB
Definition Input.h:20
@ BUTTON_X
Definition Input.h:30
@ BUTTON_W
Definition Input.h:66
@ BUTTON_D
Definition Input.h:47
@ BUTTON_Z
Definition Input.h:69
@ BUTTON_A
Definition Input.h:28
@ BUTTON_TOTAL_BUTTONS
Definition Input.h:73
@ BUTTON_V
Definition Input.h:65
@ BUTTON_START
Definition Input.h:22
@ BUTTON_5
Definition Input.h:39
@ BUTTON_E
Definition Input.h:48
@ BUTTON_3
Definition Input.h:37
Definition Archive.h:13