YourGameLib
Loading...
Searching...
No Matches
include
base
yourgame
input.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2019-2024 Alexander Scholz
3
4
This software is provided 'as-is', without any express or implied
5
warranty. In no event will the authors be held liable for any damages
6
arising from the use of this software.
7
8
Permission is granted to anyone to use this software for any purpose,
9
including commercial applications, and to alter it and redistribute it
10
freely, subject to the following restrictions:
11
12
1. The origin of this software must not be misrepresented; you must not
13
claim that you wrote the original software. If you use this software
14
in a product, an acknowledgment in the product documentation would be
15
appreciated but is not required.
16
2. Altered source versions must be plainly marked as such, and must not be
17
misrepresented as being the original software.
18
3. This notice may not be removed or altered from any source distribution.
19
*/
20
#ifndef YOURGAME_INPUT_H
21
#define YOURGAME_INPUT_H
22
23
namespace
yourgame
24
{
25
namespace
input
26
{
28
enum
Source
29
{
30
KEY_UNKNOWN
,
31
KEY_SPACE
,
32
KEY_APOSTROPHE
,
33
KEY_COMMA
,
34
KEY_MINUS
,
35
KEY_PERIOD
,
36
KEY_SLASH
,
37
KEY_0
,
38
KEY_1
,
39
KEY_2
,
40
KEY_3
,
41
KEY_4
,
42
KEY_5
,
43
KEY_6
,
44
KEY_7
,
45
KEY_8
,
46
KEY_9
,
47
KEY_SEMICOLON
,
48
KEY_EQUAL
,
49
KEY_A
,
50
KEY_B
,
51
KEY_C
,
52
KEY_D
,
53
KEY_E
,
54
KEY_F
,
55
KEY_G
,
56
KEY_H
,
57
KEY_I
,
58
KEY_J
,
59
KEY_K
,
60
KEY_L
,
61
KEY_M
,
62
KEY_N
,
63
KEY_O
,
64
KEY_P
,
65
KEY_Q
,
66
KEY_R
,
67
KEY_S
,
68
KEY_T
,
69
KEY_U
,
70
KEY_V
,
71
KEY_W
,
72
KEY_X
,
73
KEY_Y
,
74
KEY_Z
,
75
KEY_LEFT_BRACKET
,
76
KEY_BACKSLASH
,
77
KEY_RIGHT_BRACKET
,
78
KEY_GRAVE_ACCENT
,
79
KEY_WORLD_1
,
80
KEY_WORLD_2
,
81
KEY_ESCAPE
,
82
KEY_ENTER
,
83
KEY_TAB
,
84
KEY_BACKSPACE
,
85
KEY_INSERT
,
86
KEY_DELETE
,
87
KEY_RIGHT
,
88
KEY_LEFT
,
89
KEY_DOWN
,
90
KEY_UP
,
91
KEY_PAGE_UP
,
92
KEY_PAGE_DOWN
,
93
KEY_HOME
,
94
KEY_END
,
95
KEY_CAPS_LOCK
,
96
KEY_SCROLL_LOCK
,
97
KEY_NUM_LOCK
,
98
KEY_PRINT_SCREEN
,
99
KEY_PAUSE
,
100
KEY_F1
,
101
KEY_F2
,
102
KEY_F3
,
103
KEY_F4
,
104
KEY_F5
,
105
KEY_F6
,
106
KEY_F7
,
107
KEY_F8
,
108
KEY_F9
,
109
KEY_F10
,
110
KEY_F11
,
111
KEY_F12
,
112
KEY_F13
,
113
KEY_F14
,
114
KEY_F15
,
115
KEY_F16
,
116
KEY_F17
,
117
KEY_F18
,
118
KEY_F19
,
119
KEY_F20
,
120
KEY_F21
,
121
KEY_F22
,
122
KEY_F23
,
123
KEY_F24
,
124
KEY_F25
,
125
KEY_KP_0
,
126
KEY_KP_1
,
127
KEY_KP_2
,
128
KEY_KP_3
,
129
KEY_KP_4
,
130
KEY_KP_5
,
131
KEY_KP_6
,
132
KEY_KP_7
,
133
KEY_KP_8
,
134
KEY_KP_9
,
135
KEY_KP_DECIMAL
,
136
KEY_KP_DIVIDE
,
137
KEY_KP_MULTIPLY
,
138
KEY_KP_SUBTRACT
,
139
KEY_KP_ADD
,
140
KEY_KP_ENTER
,
141
KEY_KP_EQUAL
,
142
KEY_LEFT_SHIFT
,
143
KEY_LEFT_CONTROL
,
144
KEY_LEFT_ALT
,
145
KEY_LEFT_SUPER
,
146
KEY_RIGHT_SHIFT
,
147
KEY_RIGHT_CONTROL
,
148
KEY_RIGHT_ALT
,
149
KEY_RIGHT_SUPER
,
150
KEY_MENU
,
151
MOUSE_X
,
152
MOUSE_Y
,
153
MOUSE_BUTTON_1
,
// left
154
MOUSE_BUTTON_2
,
// right
155
MOUSE_BUTTON_3
,
// middle
156
MOUSE_BUTTON_4
,
157
MOUSE_BUTTON_5
,
158
MOUSE_BUTTON_6
,
159
MOUSE_BUTTON_7
,
160
MOUSE_BUTTON_8
,
161
SCROLL_OFFSET_X
,
162
SCROLL_OFFSET_Y
,
163
TOUCH_0_DOWN
,
164
TOUCH_0_X
,
165
TOUCH_0_Y
,
166
TOUCH_1_DOWN
,
167
TOUCH_1_X
,
168
TOUCH_1_Y
,
169
TOUCH_2_DOWN
,
170
TOUCH_2_X
,
171
TOUCH_2_Y
,
172
TOUCH_3_DOWN
,
173
TOUCH_3_X
,
174
TOUCH_3_Y
,
175
TOUCH_4_DOWN
,
176
TOUCH_4_X
,
177
TOUCH_4_Y
,
178
TOUCH_5_DOWN
,
179
TOUCH_5_X
,
180
TOUCH_5_Y
,
181
TOUCH_6_DOWN
,
182
TOUCH_6_X
,
183
TOUCH_6_Y
,
184
TOUCH_7_DOWN
,
185
TOUCH_7_X
,
186
TOUCH_7_Y
,
187
TOUCH_8_DOWN
,
188
TOUCH_8_X
,
189
TOUCH_8_Y
,
190
TOUCH_9_DOWN
,
191
TOUCH_9_X
,
192
TOUCH_9_Y
,
193
GAMEPAD_0_CONNECTED
,
194
GAMEPAD_0_BUTTON_A
,
195
GAMEPAD_0_BUTTON_B
,
196
GAMEPAD_0_BUTTON_X
,
197
GAMEPAD_0_BUTTON_Y
,
198
GAMEPAD_0_BUTTON_LEFT_BUMPER
,
199
GAMEPAD_0_BUTTON_RIGHT_BUMPER
,
200
GAMEPAD_0_BUTTON_BACK
,
201
GAMEPAD_0_BUTTON_START
,
202
GAMEPAD_0_BUTTON_GUIDE
,
203
GAMEPAD_0_BUTTON_LEFT_THUMB
,
204
GAMEPAD_0_BUTTON_RIGHT_THUMB
,
205
GAMEPAD_0_BUTTON_DPAD_UP
,
206
GAMEPAD_0_BUTTON_DPAD_RIGHT
,
207
GAMEPAD_0_BUTTON_DPAD_DOWN
,
208
GAMEPAD_0_BUTTON_DPAD_LEFT
,
209
GAMEPAD_0_AXIS_LEFT_X
,
210
GAMEPAD_0_AXIS_LEFT_Y
,
211
GAMEPAD_0_AXIS_RIGHT_X
,
212
GAMEPAD_0_AXIS_RIGHT_Y
,
213
GAMEPAD_0_AXIS_LEFT_TRIGGER
,
214
GAMEPAD_0_AXIS_RIGHT_TRIGGER
,
215
GAMEPAD_1_CONNECTED
,
216
GAMEPAD_1_BUTTON_A
,
217
GAMEPAD_1_BUTTON_B
,
218
GAMEPAD_1_BUTTON_X
,
219
GAMEPAD_1_BUTTON_Y
,
220
GAMEPAD_1_BUTTON_LEFT_BUMPER
,
221
GAMEPAD_1_BUTTON_RIGHT_BUMPER
,
222
GAMEPAD_1_BUTTON_BACK
,
223
GAMEPAD_1_BUTTON_START
,
224
GAMEPAD_1_BUTTON_GUIDE
,
225
GAMEPAD_1_BUTTON_LEFT_THUMB
,
226
GAMEPAD_1_BUTTON_RIGHT_THUMB
,
227
GAMEPAD_1_BUTTON_DPAD_UP
,
228
GAMEPAD_1_BUTTON_DPAD_RIGHT
,
229
GAMEPAD_1_BUTTON_DPAD_DOWN
,
230
GAMEPAD_1_BUTTON_DPAD_LEFT
,
231
GAMEPAD_1_AXIS_LEFT_X
,
232
GAMEPAD_1_AXIS_LEFT_Y
,
233
GAMEPAD_1_AXIS_RIGHT_X
,
234
GAMEPAD_1_AXIS_RIGHT_Y
,
235
GAMEPAD_1_AXIS_LEFT_TRIGGER
,
236
GAMEPAD_1_AXIS_RIGHT_TRIGGER
,
237
GAMEPAD_2_CONNECTED
,
238
GAMEPAD_2_BUTTON_A
,
239
GAMEPAD_2_BUTTON_B
,
240
GAMEPAD_2_BUTTON_X
,
241
GAMEPAD_2_BUTTON_Y
,
242
GAMEPAD_2_BUTTON_LEFT_BUMPER
,
243
GAMEPAD_2_BUTTON_RIGHT_BUMPER
,
244
GAMEPAD_2_BUTTON_BACK
,
245
GAMEPAD_2_BUTTON_START
,
246
GAMEPAD_2_BUTTON_GUIDE
,
247
GAMEPAD_2_BUTTON_LEFT_THUMB
,
248
GAMEPAD_2_BUTTON_RIGHT_THUMB
,
249
GAMEPAD_2_BUTTON_DPAD_UP
,
250
GAMEPAD_2_BUTTON_DPAD_RIGHT
,
251
GAMEPAD_2_BUTTON_DPAD_DOWN
,
252
GAMEPAD_2_BUTTON_DPAD_LEFT
,
253
GAMEPAD_2_AXIS_LEFT_X
,
254
GAMEPAD_2_AXIS_LEFT_Y
,
255
GAMEPAD_2_AXIS_RIGHT_X
,
256
GAMEPAD_2_AXIS_RIGHT_Y
,
257
GAMEPAD_2_AXIS_LEFT_TRIGGER
,
258
GAMEPAD_2_AXIS_RIGHT_TRIGGER
,
259
GAMEPAD_3_CONNECTED
,
260
GAMEPAD_3_BUTTON_A
,
261
GAMEPAD_3_BUTTON_B
,
262
GAMEPAD_3_BUTTON_X
,
263
GAMEPAD_3_BUTTON_Y
,
264
GAMEPAD_3_BUTTON_LEFT_BUMPER
,
265
GAMEPAD_3_BUTTON_RIGHT_BUMPER
,
266
GAMEPAD_3_BUTTON_BACK
,
267
GAMEPAD_3_BUTTON_START
,
268
GAMEPAD_3_BUTTON_GUIDE
,
269
GAMEPAD_3_BUTTON_LEFT_THUMB
,
270
GAMEPAD_3_BUTTON_RIGHT_THUMB
,
271
GAMEPAD_3_BUTTON_DPAD_UP
,
272
GAMEPAD_3_BUTTON_DPAD_RIGHT
,
273
GAMEPAD_3_BUTTON_DPAD_DOWN
,
274
GAMEPAD_3_BUTTON_DPAD_LEFT
,
275
GAMEPAD_3_AXIS_LEFT_X
,
276
GAMEPAD_3_AXIS_LEFT_Y
,
277
GAMEPAD_3_AXIS_RIGHT_X
,
278
GAMEPAD_3_AXIS_RIGHT_Y
,
279
GAMEPAD_3_AXIS_LEFT_TRIGGER
,
280
GAMEPAD_3_AXIS_RIGHT_TRIGGER
,
281
WINDOW_WIDTH
,
282
WINDOW_WIDTH_INVERSE
,
283
WINDOW_HEIGHT
,
284
WINDOW_HEIGHT_INVERSE
,
285
WINDOW_ASPECT_RATIO
,
286
WINDOW_ASPECT_RATIO_INVERSE
,
287
WINDOW_FULLSCREEN
,
288
POSTPROC_INITIALIZED
,
289
FRAMEBUF_WIDTH
,
290
FRAMEBUF_WIDTH_INVERSE
,
291
FRAMEBUF_HEIGHT
,
292
FRAMEBUF_HEIGHT_INVERSE
,
293
FRAMEBUF_ASPECT_RATIO
,
294
FRAMEBUF_ASPECT_RATIO_INVERSE
,
295
FRAMEBUF_MATCHES_WINDOW
,
296
VSYNC_ON
,
297
MOUSE_CATCHED
298
};
299
301
float
get
(
Source
source);
302
304
int
geti
(
Source
source);
305
307
float
getDelta
(
Source
source);
308
}
// namespace input
309
}
// namespace yourgame
310
311
#endif
yourgame::input::Source
Source
identifies the source of an input
Definition
input.h:29
yourgame::input::GAMEPAD_2_BUTTON_GUIDE
@ GAMEPAD_2_BUTTON_GUIDE
Definition
input.h:246
yourgame::input::MOUSE_BUTTON_2
@ MOUSE_BUTTON_2
Definition
input.h:154
yourgame::input::KEY_F20
@ KEY_F20
Definition
input.h:119
yourgame::input::GAMEPAD_2_BUTTON_DPAD_UP
@ GAMEPAD_2_BUTTON_DPAD_UP
Definition
input.h:249
yourgame::input::GAMEPAD_3_AXIS_RIGHT_X
@ GAMEPAD_3_AXIS_RIGHT_X
Definition
input.h:277
yourgame::input::KEY_RIGHT_SHIFT
@ KEY_RIGHT_SHIFT
Definition
input.h:146
yourgame::input::GAMEPAD_3_BUTTON_LEFT_BUMPER
@ GAMEPAD_3_BUTTON_LEFT_BUMPER
Definition
input.h:264
yourgame::input::TOUCH_6_X
@ TOUCH_6_X
Definition
input.h:182
yourgame::input::KEY_RIGHT_CONTROL
@ KEY_RIGHT_CONTROL
Definition
input.h:147
yourgame::input::SCROLL_OFFSET_X
@ SCROLL_OFFSET_X
Definition
input.h:161
yourgame::input::TOUCH_0_DOWN
@ TOUCH_0_DOWN
Definition
input.h:163
yourgame::input::KEY_F18
@ KEY_F18
Definition
input.h:117
yourgame::input::KEY_J
@ KEY_J
Definition
input.h:58
yourgame::input::GAMEPAD_2_BUTTON_RIGHT_THUMB
@ GAMEPAD_2_BUTTON_RIGHT_THUMB
Definition
input.h:248
yourgame::input::MOUSE_Y
@ MOUSE_Y
Definition
input.h:152
yourgame::input::GAMEPAD_0_BUTTON_DPAD_RIGHT
@ GAMEPAD_0_BUTTON_DPAD_RIGHT
Definition
input.h:206
yourgame::input::GAMEPAD_3_AXIS_LEFT_Y
@ GAMEPAD_3_AXIS_LEFT_Y
Definition
input.h:276
yourgame::input::KEY_9
@ KEY_9
Definition
input.h:46
yourgame::input::KEY_WORLD_1
@ KEY_WORLD_1
Definition
input.h:79
yourgame::input::KEY_B
@ KEY_B
Definition
input.h:50
yourgame::input::TOUCH_1_Y
@ TOUCH_1_Y
Definition
input.h:168
yourgame::input::GAMEPAD_2_AXIS_LEFT_X
@ GAMEPAD_2_AXIS_LEFT_X
Definition
input.h:253
yourgame::input::TOUCH_7_Y
@ TOUCH_7_Y
Definition
input.h:186
yourgame::input::GAMEPAD_3_BUTTON_DPAD_LEFT
@ GAMEPAD_3_BUTTON_DPAD_LEFT
Definition
input.h:274
yourgame::input::TOUCH_7_DOWN
@ TOUCH_7_DOWN
Definition
input.h:184
yourgame::input::TOUCH_0_Y
@ TOUCH_0_Y
Definition
input.h:165
yourgame::input::GAMEPAD_2_BUTTON_DPAD_LEFT
@ GAMEPAD_2_BUTTON_DPAD_LEFT
Definition
input.h:252
yourgame::input::KEY_RIGHT_SUPER
@ KEY_RIGHT_SUPER
Definition
input.h:149
yourgame::input::KEY_E
@ KEY_E
Definition
input.h:53
yourgame::input::KEY_KP_5
@ KEY_KP_5
Definition
input.h:130
yourgame::input::KEY_C
@ KEY_C
Definition
input.h:51
yourgame::input::GAMEPAD_0_BUTTON_X
@ GAMEPAD_0_BUTTON_X
Definition
input.h:196
yourgame::input::TOUCH_2_Y
@ TOUCH_2_Y
Definition
input.h:171
yourgame::input::KEY_F14
@ KEY_F14
Definition
input.h:113
yourgame::input::GAMEPAD_1_BUTTON_Y
@ GAMEPAD_1_BUTTON_Y
Definition
input.h:219
yourgame::input::KEY_W
@ KEY_W
Definition
input.h:71
yourgame::input::KEY_F15
@ KEY_F15
Definition
input.h:114
yourgame::input::FRAMEBUF_HEIGHT_INVERSE
@ FRAMEBUF_HEIGHT_INVERSE
Definition
input.h:292
yourgame::input::TOUCH_5_X
@ TOUCH_5_X
Definition
input.h:179
yourgame::input::KEY_KP_DECIMAL
@ KEY_KP_DECIMAL
Definition
input.h:135
yourgame::input::GAMEPAD_0_BUTTON_START
@ GAMEPAD_0_BUTTON_START
Definition
input.h:201
yourgame::input::KEY_F12
@ KEY_F12
Definition
input.h:111
yourgame::input::GAMEPAD_2_BUTTON_DPAD_RIGHT
@ GAMEPAD_2_BUTTON_DPAD_RIGHT
Definition
input.h:250
yourgame::input::KEY_UNKNOWN
@ KEY_UNKNOWN
Definition
input.h:30
yourgame::input::KEY_F10
@ KEY_F10
Definition
input.h:109
yourgame::input::GAMEPAD_0_BUTTON_GUIDE
@ GAMEPAD_0_BUTTON_GUIDE
Definition
input.h:202
yourgame::input::GAMEPAD_0_AXIS_LEFT_X
@ GAMEPAD_0_AXIS_LEFT_X
Definition
input.h:209
yourgame::input::KEY_F13
@ KEY_F13
Definition
input.h:112
yourgame::input::KEY_4
@ KEY_4
Definition
input.h:41
yourgame::input::GAMEPAD_3_BUTTON_DPAD_UP
@ GAMEPAD_3_BUTTON_DPAD_UP
Definition
input.h:271
yourgame::input::GAMEPAD_3_BUTTON_RIGHT_THUMB
@ GAMEPAD_3_BUTTON_RIGHT_THUMB
Definition
input.h:270
yourgame::input::KEY_PAGE_UP
@ KEY_PAGE_UP
Definition
input.h:91
yourgame::input::KEY_DOWN
@ KEY_DOWN
Definition
input.h:89
yourgame::input::MOUSE_BUTTON_1
@ MOUSE_BUTTON_1
Definition
input.h:153
yourgame::input::GAMEPAD_2_CONNECTED
@ GAMEPAD_2_CONNECTED
Definition
input.h:237
yourgame::input::GAMEPAD_2_AXIS_RIGHT_Y
@ GAMEPAD_2_AXIS_RIGHT_Y
Definition
input.h:256
yourgame::input::KEY_RIGHT
@ KEY_RIGHT
Definition
input.h:87
yourgame::input::TOUCH_8_Y
@ TOUCH_8_Y
Definition
input.h:189
yourgame::input::TOUCH_7_X
@ TOUCH_7_X
Definition
input.h:185
yourgame::input::GAMEPAD_2_BUTTON_Y
@ GAMEPAD_2_BUTTON_Y
Definition
input.h:241
yourgame::input::GAMEPAD_1_BUTTON_LEFT_THUMB
@ GAMEPAD_1_BUTTON_LEFT_THUMB
Definition
input.h:225
yourgame::input::GAMEPAD_2_BUTTON_X
@ GAMEPAD_2_BUTTON_X
Definition
input.h:240
yourgame::input::TOUCH_6_Y
@ TOUCH_6_Y
Definition
input.h:183
yourgame::input::KEY_F24
@ KEY_F24
Definition
input.h:123
yourgame::input::KEY_M
@ KEY_M
Definition
input.h:61
yourgame::input::KEY_KP_9
@ KEY_KP_9
Definition
input.h:134
yourgame::input::GAMEPAD_0_BUTTON_DPAD_UP
@ GAMEPAD_0_BUTTON_DPAD_UP
Definition
input.h:205
yourgame::input::KEY_KP_MULTIPLY
@ KEY_KP_MULTIPLY
Definition
input.h:137
yourgame::input::GAMEPAD_1_BUTTON_RIGHT_BUMPER
@ GAMEPAD_1_BUTTON_RIGHT_BUMPER
Definition
input.h:221
yourgame::input::TOUCH_2_DOWN
@ TOUCH_2_DOWN
Definition
input.h:169
yourgame::input::MOUSE_BUTTON_6
@ MOUSE_BUTTON_6
Definition
input.h:158
yourgame::input::GAMEPAD_1_BUTTON_DPAD_LEFT
@ GAMEPAD_1_BUTTON_DPAD_LEFT
Definition
input.h:230
yourgame::input::KEY_P
@ KEY_P
Definition
input.h:64
yourgame::input::KEY_0
@ KEY_0
Definition
input.h:37
yourgame::input::TOUCH_9_DOWN
@ TOUCH_9_DOWN
Definition
input.h:190
yourgame::input::KEY_V
@ KEY_V
Definition
input.h:70
yourgame::input::TOUCH_4_DOWN
@ TOUCH_4_DOWN
Definition
input.h:175
yourgame::input::KEY_5
@ KEY_5
Definition
input.h:42
yourgame::input::KEY_F19
@ KEY_F19
Definition
input.h:118
yourgame::input::GAMEPAD_1_AXIS_RIGHT_TRIGGER
@ GAMEPAD_1_AXIS_RIGHT_TRIGGER
Definition
input.h:236
yourgame::input::KEY_TAB
@ KEY_TAB
Definition
input.h:83
yourgame::input::KEY_KP_ENTER
@ KEY_KP_ENTER
Definition
input.h:140
yourgame::input::VSYNC_ON
@ VSYNC_ON
Definition
input.h:296
yourgame::input::FRAMEBUF_WIDTH
@ FRAMEBUF_WIDTH
Definition
input.h:289
yourgame::input::TOUCH_3_X
@ TOUCH_3_X
Definition
input.h:173
yourgame::input::KEY_CAPS_LOCK
@ KEY_CAPS_LOCK
Definition
input.h:95
yourgame::input::KEY_3
@ KEY_3
Definition
input.h:40
yourgame::input::GAMEPAD_0_AXIS_RIGHT_TRIGGER
@ GAMEPAD_0_AXIS_RIGHT_TRIGGER
Definition
input.h:214
yourgame::input::GAMEPAD_2_BUTTON_B
@ GAMEPAD_2_BUTTON_B
Definition
input.h:239
yourgame::input::GAMEPAD_1_BUTTON_START
@ GAMEPAD_1_BUTTON_START
Definition
input.h:223
yourgame::input::KEY_U
@ KEY_U
Definition
input.h:69
yourgame::input::KEY_RIGHT_BRACKET
@ KEY_RIGHT_BRACKET
Definition
input.h:77
yourgame::input::KEY_LEFT_BRACKET
@ KEY_LEFT_BRACKET
Definition
input.h:75
yourgame::input::KEY_Y
@ KEY_Y
Definition
input.h:73
yourgame::input::GAMEPAD_3_AXIS_RIGHT_Y
@ GAMEPAD_3_AXIS_RIGHT_Y
Definition
input.h:278
yourgame::input::GAMEPAD_1_AXIS_LEFT_Y
@ GAMEPAD_1_AXIS_LEFT_Y
Definition
input.h:232
yourgame::input::KEY_KP_EQUAL
@ KEY_KP_EQUAL
Definition
input.h:141
yourgame::input::GAMEPAD_0_BUTTON_BACK
@ GAMEPAD_0_BUTTON_BACK
Definition
input.h:200
yourgame::input::GAMEPAD_1_BUTTON_B
@ GAMEPAD_1_BUTTON_B
Definition
input.h:217
yourgame::input::WINDOW_FULLSCREEN
@ WINDOW_FULLSCREEN
Definition
input.h:287
yourgame::input::KEY_BACKSLASH
@ KEY_BACKSLASH
Definition
input.h:76
yourgame::input::KEY_F8
@ KEY_F8
Definition
input.h:107
yourgame::input::GAMEPAD_2_BUTTON_LEFT_BUMPER
@ GAMEPAD_2_BUTTON_LEFT_BUMPER
Definition
input.h:242
yourgame::input::GAMEPAD_0_BUTTON_DPAD_LEFT
@ GAMEPAD_0_BUTTON_DPAD_LEFT
Definition
input.h:208
yourgame::input::KEY_LEFT_SHIFT
@ KEY_LEFT_SHIFT
Definition
input.h:142
yourgame::input::KEY_H
@ KEY_H
Definition
input.h:56
yourgame::input::KEY_KP_DIVIDE
@ KEY_KP_DIVIDE
Definition
input.h:136
yourgame::input::GAMEPAD_1_BUTTON_DPAD_UP
@ GAMEPAD_1_BUTTON_DPAD_UP
Definition
input.h:227
yourgame::input::FRAMEBUF_ASPECT_RATIO_INVERSE
@ FRAMEBUF_ASPECT_RATIO_INVERSE
Definition
input.h:294
yourgame::input::GAMEPAD_3_BUTTON_Y
@ GAMEPAD_3_BUTTON_Y
Definition
input.h:263
yourgame::input::TOUCH_8_X
@ TOUCH_8_X
Definition
input.h:188
yourgame::input::KEY_KP_8
@ KEY_KP_8
Definition
input.h:133
yourgame::input::GAMEPAD_3_BUTTON_START
@ GAMEPAD_3_BUTTON_START
Definition
input.h:267
yourgame::input::TOUCH_4_X
@ TOUCH_4_X
Definition
input.h:176
yourgame::input::GAMEPAD_1_AXIS_LEFT_X
@ GAMEPAD_1_AXIS_LEFT_X
Definition
input.h:231
yourgame::input::GAMEPAD_2_BUTTON_RIGHT_BUMPER
@ GAMEPAD_2_BUTTON_RIGHT_BUMPER
Definition
input.h:243
yourgame::input::GAMEPAD_3_AXIS_RIGHT_TRIGGER
@ GAMEPAD_3_AXIS_RIGHT_TRIGGER
Definition
input.h:280
yourgame::input::TOUCH_3_DOWN
@ TOUCH_3_DOWN
Definition
input.h:172
yourgame::input::TOUCH_0_X
@ TOUCH_0_X
Definition
input.h:164
yourgame::input::FRAMEBUF_WIDTH_INVERSE
@ FRAMEBUF_WIDTH_INVERSE
Definition
input.h:290
yourgame::input::TOUCH_4_Y
@ TOUCH_4_Y
Definition
input.h:177
yourgame::input::KEY_F22
@ KEY_F22
Definition
input.h:121
yourgame::input::GAMEPAD_0_AXIS_LEFT_TRIGGER
@ GAMEPAD_0_AXIS_LEFT_TRIGGER
Definition
input.h:213
yourgame::input::KEY_F5
@ KEY_F5
Definition
input.h:104
yourgame::input::KEY_L
@ KEY_L
Definition
input.h:60
yourgame::input::WINDOW_HEIGHT
@ WINDOW_HEIGHT
Definition
input.h:283
yourgame::input::KEY_NUM_LOCK
@ KEY_NUM_LOCK
Definition
input.h:97
yourgame::input::KEY_MINUS
@ KEY_MINUS
Definition
input.h:34
yourgame::input::GAMEPAD_3_AXIS_LEFT_TRIGGER
@ GAMEPAD_3_AXIS_LEFT_TRIGGER
Definition
input.h:279
yourgame::input::TOUCH_6_DOWN
@ TOUCH_6_DOWN
Definition
input.h:181
yourgame::input::KEY_F23
@ KEY_F23
Definition
input.h:122
yourgame::input::TOUCH_5_Y
@ TOUCH_5_Y
Definition
input.h:180
yourgame::input::GAMEPAD_1_BUTTON_X
@ GAMEPAD_1_BUTTON_X
Definition
input.h:218
yourgame::input::KEY_K
@ KEY_K
Definition
input.h:59
yourgame::input::GAMEPAD_3_AXIS_LEFT_X
@ GAMEPAD_3_AXIS_LEFT_X
Definition
input.h:275
yourgame::input::KEY_R
@ KEY_R
Definition
input.h:66
yourgame::input::TOUCH_2_X
@ TOUCH_2_X
Definition
input.h:170
yourgame::input::GAMEPAD_3_BUTTON_BACK
@ GAMEPAD_3_BUTTON_BACK
Definition
input.h:266
yourgame::input::KEY_SPACE
@ KEY_SPACE
Definition
input.h:31
yourgame::input::GAMEPAD_1_BUTTON_RIGHT_THUMB
@ GAMEPAD_1_BUTTON_RIGHT_THUMB
Definition
input.h:226
yourgame::input::GAMEPAD_3_BUTTON_X
@ GAMEPAD_3_BUTTON_X
Definition
input.h:262
yourgame::input::GAMEPAD_2_BUTTON_A
@ GAMEPAD_2_BUTTON_A
Definition
input.h:238
yourgame::input::KEY_KP_6
@ KEY_KP_6
Definition
input.h:131
yourgame::input::KEY_O
@ KEY_O
Definition
input.h:63
yourgame::input::KEY_APOSTROPHE
@ KEY_APOSTROPHE
Definition
input.h:32
yourgame::input::GAMEPAD_2_AXIS_LEFT_Y
@ GAMEPAD_2_AXIS_LEFT_Y
Definition
input.h:254
yourgame::input::GAMEPAD_1_BUTTON_DPAD_RIGHT
@ GAMEPAD_1_BUTTON_DPAD_RIGHT
Definition
input.h:228
yourgame::input::KEY_PRINT_SCREEN
@ KEY_PRINT_SCREEN
Definition
input.h:98
yourgame::input::KEY_1
@ KEY_1
Definition
input.h:38
yourgame::input::TOUCH_3_Y
@ TOUCH_3_Y
Definition
input.h:174
yourgame::input::GAMEPAD_2_BUTTON_LEFT_THUMB
@ GAMEPAD_2_BUTTON_LEFT_THUMB
Definition
input.h:247
yourgame::input::GAMEPAD_3_BUTTON_GUIDE
@ GAMEPAD_3_BUTTON_GUIDE
Definition
input.h:268
yourgame::input::KEY_S
@ KEY_S
Definition
input.h:67
yourgame::input::GAMEPAD_2_BUTTON_BACK
@ GAMEPAD_2_BUTTON_BACK
Definition
input.h:244
yourgame::input::GAMEPAD_2_AXIS_RIGHT_TRIGGER
@ GAMEPAD_2_AXIS_RIGHT_TRIGGER
Definition
input.h:258
yourgame::input::KEY_6
@ KEY_6
Definition
input.h:43
yourgame::input::KEY_F25
@ KEY_F25
Definition
input.h:124
yourgame::input::GAMEPAD_1_AXIS_RIGHT_X
@ GAMEPAD_1_AXIS_RIGHT_X
Definition
input.h:233
yourgame::input::KEY_ESCAPE
@ KEY_ESCAPE
Definition
input.h:81
yourgame::input::TOUCH_1_X
@ TOUCH_1_X
Definition
input.h:167
yourgame::input::KEY_COMMA
@ KEY_COMMA
Definition
input.h:33
yourgame::input::KEY_G
@ KEY_G
Definition
input.h:55
yourgame::input::GAMEPAD_0_BUTTON_B
@ GAMEPAD_0_BUTTON_B
Definition
input.h:195
yourgame::input::GAMEPAD_3_BUTTON_DPAD_DOWN
@ GAMEPAD_3_BUTTON_DPAD_DOWN
Definition
input.h:273
yourgame::input::GAMEPAD_1_BUTTON_DPAD_DOWN
@ GAMEPAD_1_BUTTON_DPAD_DOWN
Definition
input.h:229
yourgame::input::KEY_SEMICOLON
@ KEY_SEMICOLON
Definition
input.h:47
yourgame::input::KEY_KP_4
@ KEY_KP_4
Definition
input.h:129
yourgame::input::TOUCH_5_DOWN
@ TOUCH_5_DOWN
Definition
input.h:178
yourgame::input::TOUCH_9_Y
@ TOUCH_9_Y
Definition
input.h:192
yourgame::input::KEY_LEFT
@ KEY_LEFT
Definition
input.h:88
yourgame::input::KEY_7
@ KEY_7
Definition
input.h:44
yourgame::input::MOUSE_BUTTON_4
@ MOUSE_BUTTON_4
Definition
input.h:156
yourgame::input::GAMEPAD_0_BUTTON_LEFT_THUMB
@ GAMEPAD_0_BUTTON_LEFT_THUMB
Definition
input.h:203
yourgame::input::KEY_MENU
@ KEY_MENU
Definition
input.h:150
yourgame::input::KEY_LEFT_SUPER
@ KEY_LEFT_SUPER
Definition
input.h:145
yourgame::input::GAMEPAD_0_CONNECTED
@ GAMEPAD_0_CONNECTED
Definition
input.h:193
yourgame::input::GAMEPAD_3_BUTTON_B
@ GAMEPAD_3_BUTTON_B
Definition
input.h:261
yourgame::input::KEY_PAUSE
@ KEY_PAUSE
Definition
input.h:99
yourgame::input::FRAMEBUF_HEIGHT
@ FRAMEBUF_HEIGHT
Definition
input.h:291
yourgame::input::KEY_F2
@ KEY_F2
Definition
input.h:101
yourgame::input::KEY_KP_7
@ KEY_KP_7
Definition
input.h:132
yourgame::input::GAMEPAD_0_BUTTON_RIGHT_BUMPER
@ GAMEPAD_0_BUTTON_RIGHT_BUMPER
Definition
input.h:199
yourgame::input::GAMEPAD_2_BUTTON_START
@ GAMEPAD_2_BUTTON_START
Definition
input.h:245
yourgame::input::KEY_SCROLL_LOCK
@ KEY_SCROLL_LOCK
Definition
input.h:96
yourgame::input::WINDOW_ASPECT_RATIO
@ WINDOW_ASPECT_RATIO
Definition
input.h:285
yourgame::input::MOUSE_X
@ MOUSE_X
Definition
input.h:151
yourgame::input::GAMEPAD_0_BUTTON_DPAD_DOWN
@ GAMEPAD_0_BUTTON_DPAD_DOWN
Definition
input.h:207
yourgame::input::KEY_2
@ KEY_2
Definition
input.h:39
yourgame::input::KEY_F11
@ KEY_F11
Definition
input.h:110
yourgame::input::MOUSE_BUTTON_3
@ MOUSE_BUTTON_3
Definition
input.h:155
yourgame::input::SCROLL_OFFSET_Y
@ SCROLL_OFFSET_Y
Definition
input.h:162
yourgame::input::GAMEPAD_0_AXIS_LEFT_Y
@ GAMEPAD_0_AXIS_LEFT_Y
Definition
input.h:210
yourgame::input::GAMEPAD_0_BUTTON_A
@ GAMEPAD_0_BUTTON_A
Definition
input.h:194
yourgame::input::WINDOW_ASPECT_RATIO_INVERSE
@ WINDOW_ASPECT_RATIO_INVERSE
Definition
input.h:286
yourgame::input::GAMEPAD_2_BUTTON_DPAD_DOWN
@ GAMEPAD_2_BUTTON_DPAD_DOWN
Definition
input.h:251
yourgame::input::MOUSE_BUTTON_5
@ MOUSE_BUTTON_5
Definition
input.h:157
yourgame::input::KEY_ENTER
@ KEY_ENTER
Definition
input.h:82
yourgame::input::KEY_KP_SUBTRACT
@ KEY_KP_SUBTRACT
Definition
input.h:138
yourgame::input::KEY_Z
@ KEY_Z
Definition
input.h:74
yourgame::input::GAMEPAD_3_BUTTON_LEFT_THUMB
@ GAMEPAD_3_BUTTON_LEFT_THUMB
Definition
input.h:269
yourgame::input::KEY_F
@ KEY_F
Definition
input.h:54
yourgame::input::MOUSE_BUTTON_8
@ MOUSE_BUTTON_8
Definition
input.h:160
yourgame::input::KEY_F3
@ KEY_F3
Definition
input.h:102
yourgame::input::FRAMEBUF_MATCHES_WINDOW
@ FRAMEBUF_MATCHES_WINDOW
Definition
input.h:295
yourgame::input::KEY_T
@ KEY_T
Definition
input.h:68
yourgame::input::KEY_UP
@ KEY_UP
Definition
input.h:90
yourgame::input::GAMEPAD_0_AXIS_RIGHT_X
@ GAMEPAD_0_AXIS_RIGHT_X
Definition
input.h:211
yourgame::input::KEY_N
@ KEY_N
Definition
input.h:62
yourgame::input::GAMEPAD_1_BUTTON_BACK
@ GAMEPAD_1_BUTTON_BACK
Definition
input.h:222
yourgame::input::KEY_F17
@ KEY_F17
Definition
input.h:116
yourgame::input::KEY_RIGHT_ALT
@ KEY_RIGHT_ALT
Definition
input.h:148
yourgame::input::KEY_X
@ KEY_X
Definition
input.h:72
yourgame::input::KEY_D
@ KEY_D
Definition
input.h:52
yourgame::input::TOUCH_8_DOWN
@ TOUCH_8_DOWN
Definition
input.h:187
yourgame::input::GAMEPAD_3_BUTTON_A
@ GAMEPAD_3_BUTTON_A
Definition
input.h:260
yourgame::input::MOUSE_BUTTON_7
@ MOUSE_BUTTON_7
Definition
input.h:159
yourgame::input::KEY_LEFT_ALT
@ KEY_LEFT_ALT
Definition
input.h:144
yourgame::input::GAMEPAD_1_BUTTON_A
@ GAMEPAD_1_BUTTON_A
Definition
input.h:216
yourgame::input::KEY_F7
@ KEY_F7
Definition
input.h:106
yourgame::input::WINDOW_HEIGHT_INVERSE
@ WINDOW_HEIGHT_INVERSE
Definition
input.h:284
yourgame::input::POSTPROC_INITIALIZED
@ POSTPROC_INITIALIZED
Definition
input.h:288
yourgame::input::KEY_8
@ KEY_8
Definition
input.h:45
yourgame::input::GAMEPAD_1_BUTTON_GUIDE
@ GAMEPAD_1_BUTTON_GUIDE
Definition
input.h:224
yourgame::input::GAMEPAD_0_AXIS_RIGHT_Y
@ GAMEPAD_0_AXIS_RIGHT_Y
Definition
input.h:212
yourgame::input::KEY_F4
@ KEY_F4
Definition
input.h:103
yourgame::input::KEY_KP_3
@ KEY_KP_3
Definition
input.h:128
yourgame::input::KEY_F6
@ KEY_F6
Definition
input.h:105
yourgame::input::KEY_F16
@ KEY_F16
Definition
input.h:115
yourgame::input::KEY_F9
@ KEY_F9
Definition
input.h:108
yourgame::input::GAMEPAD_3_BUTTON_DPAD_RIGHT
@ GAMEPAD_3_BUTTON_DPAD_RIGHT
Definition
input.h:272
yourgame::input::KEY_KP_0
@ KEY_KP_0
Definition
input.h:125
yourgame::input::GAMEPAD_1_AXIS_LEFT_TRIGGER
@ GAMEPAD_1_AXIS_LEFT_TRIGGER
Definition
input.h:235
yourgame::input::GAMEPAD_3_BUTTON_RIGHT_BUMPER
@ GAMEPAD_3_BUTTON_RIGHT_BUMPER
Definition
input.h:265
yourgame::input::KEY_DELETE
@ KEY_DELETE
Definition
input.h:86
yourgame::input::WINDOW_WIDTH_INVERSE
@ WINDOW_WIDTH_INVERSE
Definition
input.h:282
yourgame::input::KEY_WORLD_2
@ KEY_WORLD_2
Definition
input.h:80
yourgame::input::KEY_I
@ KEY_I
Definition
input.h:57
yourgame::input::GAMEPAD_3_CONNECTED
@ GAMEPAD_3_CONNECTED
Definition
input.h:259
yourgame::input::TOUCH_9_X
@ TOUCH_9_X
Definition
input.h:191
yourgame::input::MOUSE_CATCHED
@ MOUSE_CATCHED
Definition
input.h:297
yourgame::input::KEY_GRAVE_ACCENT
@ KEY_GRAVE_ACCENT
Definition
input.h:78
yourgame::input::GAMEPAD_1_CONNECTED
@ GAMEPAD_1_CONNECTED
Definition
input.h:215
yourgame::input::FRAMEBUF_ASPECT_RATIO
@ FRAMEBUF_ASPECT_RATIO
Definition
input.h:293
yourgame::input::KEY_LEFT_CONTROL
@ KEY_LEFT_CONTROL
Definition
input.h:143
yourgame::input::KEY_EQUAL
@ KEY_EQUAL
Definition
input.h:48
yourgame::input::KEY_KP_ADD
@ KEY_KP_ADD
Definition
input.h:139
yourgame::input::KEY_Q
@ KEY_Q
Definition
input.h:65
yourgame::input::KEY_F21
@ KEY_F21
Definition
input.h:120
yourgame::input::KEY_A
@ KEY_A
Definition
input.h:49
yourgame::input::KEY_INSERT
@ KEY_INSERT
Definition
input.h:85
yourgame::input::KEY_KP_2
@ KEY_KP_2
Definition
input.h:127
yourgame::input::KEY_PERIOD
@ KEY_PERIOD
Definition
input.h:35
yourgame::input::KEY_HOME
@ KEY_HOME
Definition
input.h:93
yourgame::input::KEY_PAGE_DOWN
@ KEY_PAGE_DOWN
Definition
input.h:92
yourgame::input::TOUCH_1_DOWN
@ TOUCH_1_DOWN
Definition
input.h:166
yourgame::input::GAMEPAD_2_AXIS_LEFT_TRIGGER
@ GAMEPAD_2_AXIS_LEFT_TRIGGER
Definition
input.h:257
yourgame::input::GAMEPAD_0_BUTTON_RIGHT_THUMB
@ GAMEPAD_0_BUTTON_RIGHT_THUMB
Definition
input.h:204
yourgame::input::GAMEPAD_2_AXIS_RIGHT_X
@ GAMEPAD_2_AXIS_RIGHT_X
Definition
input.h:255
yourgame::input::KEY_SLASH
@ KEY_SLASH
Definition
input.h:36
yourgame::input::WINDOW_WIDTH
@ WINDOW_WIDTH
Definition
input.h:281
yourgame::input::GAMEPAD_0_BUTTON_Y
@ GAMEPAD_0_BUTTON_Y
Definition
input.h:197
yourgame::input::KEY_END
@ KEY_END
Definition
input.h:94
yourgame::input::GAMEPAD_1_AXIS_RIGHT_Y
@ GAMEPAD_1_AXIS_RIGHT_Y
Definition
input.h:234
yourgame::input::KEY_KP_1
@ KEY_KP_1
Definition
input.h:126
yourgame::input::GAMEPAD_1_BUTTON_LEFT_BUMPER
@ GAMEPAD_1_BUTTON_LEFT_BUMPER
Definition
input.h:220
yourgame::input::KEY_BACKSPACE
@ KEY_BACKSPACE
Definition
input.h:84
yourgame::input::KEY_F1
@ KEY_F1
Definition
input.h:100
yourgame::input::GAMEPAD_0_BUTTON_LEFT_BUMPER
@ GAMEPAD_0_BUTTON_LEFT_BUMPER
Definition
input.h:198
yourgame::input::get
float get(Source source)
returns the current value of the input source source
Definition
input.cpp:47
yourgame::input::geti
int geti(Source source)
returns the current value of the input source source, rounded to int
Definition
input.cpp:53
yourgame::input::getDelta
float getDelta(Source source)
returns the value delta (current minus last frame value) of the input source source
Definition
input.cpp:58
yourgame
Definition
audio.h:27
Generated by
1.9.8