Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
userinput.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2023 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19namespace cqsp {
20namespace engine {
21class UserInput {};
22int GetRmlUiKey(int key);
23int GetAsciiKey(int key);
24
76
77 /* Function keys */
149
150KeyInput GetKey(int key);
151int GetGlfwKey(KeyInput key);
152
153enum MouseInput { LEFT = 0, RIGHT = 1, MIDDLE = 2 };
154} // namespace engine
155} // namespace cqsp
Definition: userinput.h:21
int GetRmlUiKey(int key)
Definition: userinput.cpp:22
int GetGlfwKey(KeyInput key)
Definition: userinput.cpp:444
KeyInput
Definition: userinput.h:25
@ KEY_R
Definition: userinput.h:61
@ KEY_CAPS_LOCK
Definition: userinput.h:92
@ KEY_O
Definition: userinput.h:58
@ KEY_1
Definition: userinput.h:33
@ KEY_PAUSE
Definition: userinput.h:96
@ KEY_DELETE
Definition: userinput.h:83
@ KEY_7
Definition: userinput.h:39
@ KEY_F13
Definition: userinput.h:109
@ KEY_F24
Definition: userinput.h:120
@ KEY_LEFT_SUPER
Definition: userinput.h:142
@ KEY_KP_7
Definition: userinput.h:129
@ KEY_PRINT_SCREEN
Definition: userinput.h:95
@ KEY_F
Definition: userinput.h:49
@ KEY_PAGE_UP
Definition: userinput.h:88
@ KEY_KP_DIVIDE
Definition: userinput.h:133
@ KEY_KP_2
Definition: userinput.h:124
@ KEY_KP_5
Definition: userinput.h:127
@ KEY_KP_DECIMAL
Definition: userinput.h:132
@ KEY_RIGHT_ALT
Definition: userinput.h:145
@ KEY_GRAVE_ACCENT
Definition: userinput.h:73
@ KEY_F11
Definition: userinput.h:107
@ KEY_LEFT
Definition: userinput.h:85
@ KEY_APOSTROPHE
Definition: userinput.h:27
@ KEY_KP_1
Definition: userinput.h:123
@ KEY_P
Definition: userinput.h:59
@ KEY_A
Definition: userinput.h:44
@ KEY_KP_ENTER
Definition: userinput.h:137
@ KEY_SCROLL_LOCK
Definition: userinput.h:93
@ KEY_TAB
Definition: userinput.h:80
@ KEY_4
Definition: userinput.h:36
@ KEY_KP_6
Definition: userinput.h:128
@ KEY_KP_9
Definition: userinput.h:131
@ KEY_T
Definition: userinput.h:63
@ KEY_WORLD_2
Definition: userinput.h:75
@ KEY_F6
Definition: userinput.h:102
@ KEY_F16
Definition: userinput.h:112
@ KEY_S
Definition: userinput.h:62
@ KEY_F23
Definition: userinput.h:119
@ KEY_9
Definition: userinput.h:41
@ KEY_F2
Definition: userinput.h:98
@ KEY_F18
Definition: userinput.h:114
@ KEY_MENU
Definition: userinput.h:147
@ KEY_F7
Definition: userinput.h:103
@ KEY_F15
Definition: userinput.h:111
@ KEY_PAGE_DOWN
Definition: userinput.h:89
@ KEY_F17
Definition: userinput.h:113
@ KEY_L
Definition: userinput.h:55
@ KEY_BACKSPACE
Definition: userinput.h:81
@ KEY_LEFT_BRACKET
Definition: userinput.h:70
@ KEY_8
Definition: userinput.h:40
@ KEY_G
Definition: userinput.h:50
@ KEY_F8
Definition: userinput.h:104
@ KEY_DOWN
Definition: userinput.h:86
@ KEY_KP_MULTIPLY
Definition: userinput.h:134
@ KEY_Q
Definition: userinput.h:60
@ KEY_5
Definition: userinput.h:37
@ KEY_W
Definition: userinput.h:66
@ KEY_2
Definition: userinput.h:34
@ KEY_NUM_LOCK
Definition: userinput.h:94
@ KEY_BACKSLASH
Definition: userinput.h:71
@ KEY_F3
Definition: userinput.h:99
@ KEY_F10
Definition: userinput.h:106
@ KEY_LEFT_SHIFT
Definition: userinput.h:139
@ KEY_F22
Definition: userinput.h:118
@ KEY_Z
Definition: userinput.h:69
@ KEY_COMMA
Definition: userinput.h:28
@ KEY_END
Definition: userinput.h:91
@ KEY_RIGHT_SHIFT
Definition: userinput.h:143
@ KEY_LEFT_CONTROL
Definition: userinput.h:140
@ KEY_X
Definition: userinput.h:67
@ KEY_F5
Definition: userinput.h:101
@ KEY_Y
Definition: userinput.h:68
@ KEY_KP_EQUAL
Definition: userinput.h:138
@ KEY_E
Definition: userinput.h:48
@ KEY_M
Definition: userinput.h:56
@ KEY_ENTER
Definition: userinput.h:79
@ KEY_INSERT
Definition: userinput.h:82
@ KEY_WORLD_1
Definition: userinput.h:74
@ KEY_B
Definition: userinput.h:45
@ KEY_I
Definition: userinput.h:52
@ KEY_F1
Definition: userinput.h:97
@ KEY_U
Definition: userinput.h:64
@ KEY_KP_4
Definition: userinput.h:126
@ KEY_EQUAL
Definition: userinput.h:43
@ KEY_SLASH
Definition: userinput.h:31
@ KEY_C
Definition: userinput.h:46
@ KEY_N
Definition: userinput.h:57
@ KEY_RIGHT_SUPER
Definition: userinput.h:146
@ KEY_F20
Definition: userinput.h:116
@ KEY_J
Definition: userinput.h:53
@ KEY_SEMICOLON
Definition: userinput.h:42
@ KEY_6
Definition: userinput.h:38
@ KEY_F4
Definition: userinput.h:100
@ KEY_K
Definition: userinput.h:54
@ KEY_KP_SUBTRACT
Definition: userinput.h:135
@ KEY_H
Definition: userinput.h:51
@ KEY_RIGHT
Definition: userinput.h:84
@ KEY_PERIOD
Definition: userinput.h:30
@ KEY_HOME
Definition: userinput.h:90
@ KEY_RIGHT_CONTROL
Definition: userinput.h:144
@ KEY_KP_3
Definition: userinput.h:125
@ KEY_KP_8
Definition: userinput.h:130
@ KEY_UP
Definition: userinput.h:87
@ KEY_F14
Definition: userinput.h:110
@ KEY_MINUS
Definition: userinput.h:29
@ KEY_KP_0
Definition: userinput.h:122
@ KEY_V
Definition: userinput.h:65
@ KEY_F21
Definition: userinput.h:117
@ KEY_SPACE
Definition: userinput.h:26
@ KEY_F12
Definition: userinput.h:108
@ KEY_KP_ADD
Definition: userinput.h:136
@ KEY_0
Definition: userinput.h:32
@ KEY_D
Definition: userinput.h:47
@ KEY_3
Definition: userinput.h:35
@ KEY_F9
Definition: userinput.h:105
@ KEY_ESCAPE
Definition: userinput.h:78
@ KEY_LEFT_ALT
Definition: userinput.h:141
@ KEY_RIGHT_BRACKET
Definition: userinput.h:72
@ KEY_F19
Definition: userinput.h:115
@ KEY_F25
Definition: userinput.h:121
int GetAsciiKey(int key)
Definition: userinput.cpp:195
MouseInput
Definition: userinput.h:153
@ LEFT
Definition: userinput.h:153
@ MIDDLE
Definition: userinput.h:153
@ RIGHT
Definition: userinput.h:153
KeyInput GetKey(int key)
Definition: userinput.cpp:197
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21