OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OISCompat.hpp
Go to the documentation of this file.
1 #ifndef OIS_SDL_COMPAT_H
2 #define OIS_SDL_COMPAT_H
3 
4 #include <SDL_events.h>
5 #include <SDL_types.h>
6 
7 namespace OIS
8 {
10 enum KeyCode
11 {
12  KC_UNASSIGNED = 0x00,
13  KC_ESCAPE = 0x01,
14  KC_1 = 0x02,
15  KC_2 = 0x03,
16  KC_3 = 0x04,
17  KC_4 = 0x05,
18  KC_5 = 0x06,
19  KC_6 = 0x07,
20  KC_7 = 0x08,
21  KC_8 = 0x09,
22  KC_9 = 0x0A,
23  KC_0 = 0x0B,
24  KC_MINUS = 0x0C, // - on main keyboard
25  KC_EQUALS = 0x0D,
26  KC_BACK = 0x0E, // backspace
27  KC_TAB = 0x0F,
28  KC_Q = 0x10,
29  KC_W = 0x11,
30  KC_E = 0x12,
31  KC_R = 0x13,
32  KC_T = 0x14,
33  KC_Y = 0x15,
34  KC_U = 0x16,
35  KC_I = 0x17,
36  KC_O = 0x18,
37  KC_P = 0x19,
38  KC_LBRACKET = 0x1A,
39  KC_RBRACKET = 0x1B,
40  KC_RETURN = 0x1C, // Enter on main keyboard
41  KC_LCONTROL = 0x1D,
42  KC_A = 0x1E,
43  KC_S = 0x1F,
44  KC_D = 0x20,
45  KC_F = 0x21,
46  KC_G = 0x22,
47  KC_H = 0x23,
48  KC_J = 0x24,
49  KC_K = 0x25,
50  KC_L = 0x26,
51  KC_SEMICOLON = 0x27,
52  KC_APOSTROPHE = 0x28,
53  KC_GRAVE = 0x29, // accent
54  KC_LSHIFT = 0x2A,
55  KC_BACKSLASH = 0x2B,
56  KC_Z = 0x2C,
57  KC_X = 0x2D,
58  KC_C = 0x2E,
59  KC_V = 0x2F,
60  KC_B = 0x30,
61  KC_N = 0x31,
62  KC_M = 0x32,
63  KC_COMMA = 0x33,
64  KC_PERIOD = 0x34, // . on main keyboard
65  KC_SLASH = 0x35, // / on main keyboard
66  KC_RSHIFT = 0x36,
67  KC_MULTIPLY = 0x37, // * on numeric keypad
68  KC_LMENU = 0x38, // left Alt
69  KC_SPACE = 0x39,
70  KC_CAPITAL = 0x3A,
71  KC_F1 = 0x3B,
72  KC_F2 = 0x3C,
73  KC_F3 = 0x3D,
74  KC_F4 = 0x3E,
75  KC_F5 = 0x3F,
76  KC_F6 = 0x40,
77  KC_F7 = 0x41,
78  KC_F8 = 0x42,
79  KC_F9 = 0x43,
80  KC_F10 = 0x44,
81  KC_NUMLOCK = 0x45,
82  KC_SCROLL = 0x46, // Scroll Lock
83  KC_NUMPAD7 = 0x47,
84  KC_NUMPAD8 = 0x48,
85  KC_NUMPAD9 = 0x49,
86  KC_SUBTRACT = 0x4A, // - on numeric keypad
87  KC_NUMPAD4 = 0x4B,
88  KC_NUMPAD5 = 0x4C,
89  KC_NUMPAD6 = 0x4D,
90  KC_ADD = 0x4E, // + on numeric keypad
91  KC_NUMPAD1 = 0x4F,
92  KC_NUMPAD2 = 0x50,
93  KC_NUMPAD3 = 0x51,
94  KC_NUMPAD0 = 0x52,
95  KC_DECIMAL = 0x53, // . on numeric keypad
96  KC_OEM_102 = 0x56, // < > | on UK/Germany keyboards
97  KC_F11 = 0x57,
98  KC_F12 = 0x58,
99  KC_F13 = 0x64, // (NEC PC98)
100  KC_F14 = 0x65, // (NEC PC98)
101  KC_F15 = 0x66, // (NEC PC98)
102  KC_KANA = 0x70, // (Japanese keyboard)
103  KC_ABNT_C1 = 0x73, // / ? on Portugese (Brazilian) keyboards
104  KC_CONVERT = 0x79, // (Japanese keyboard)
105  KC_NOCONVERT = 0x7B, // (Japanese keyboard)
106  KC_YEN = 0x7D, // (Japanese keyboard)
107  KC_ABNT_C2 = 0x7E, // Numpad . on Portugese (Brazilian) keyboards
108  KC_NUMPADEQUALS= 0x8D, // = on numeric keypad (NEC PC98)
109  KC_PREVTRACK = 0x90, // Previous Track (KC_CIRCUMFLEX on Japanese keyboard)
110  KC_AT = 0x91, // (NEC PC98)
111  KC_COLON = 0x92, // (NEC PC98)
112  KC_UNDERLINE = 0x93, // (NEC PC98)
113  KC_KANJI = 0x94, // (Japanese keyboard)
114  KC_STOP = 0x95, // (NEC PC98)
115  KC_AX = 0x96, // (Japan AX)
116  KC_UNLABELED = 0x97, // (J3100)
117  KC_NEXTTRACK = 0x99, // Next Track
118  KC_NUMPADENTER = 0x9C, // Enter on numeric keypad
119  KC_RCONTROL = 0x9D,
120  KC_MUTE = 0xA0, // Mute
121  KC_CALCULATOR = 0xA1, // Calculator
122  KC_PLAYPAUSE = 0xA2, // Play / Pause
123  KC_MEDIASTOP = 0xA4, // Media Stop
124  KC_VOLUMEDOWN = 0xAE, // Volume -
125  KC_VOLUMEUP = 0xB0, // Volume +
126  KC_WEBHOME = 0xB2, // Web home
127  KC_NUMPADCOMMA = 0xB3, // , on numeric keypad (NEC PC98)
128  KC_DIVIDE = 0xB5, // / on numeric keypad
129  KC_SYSRQ = 0xB7,
130  KC_RMENU = 0xB8, // right Alt
131  KC_PAUSE = 0xC5, // Pause
132  KC_HOME = 0xC7, // Home on arrow keypad
133  KC_UP = 0xC8, // UpArrow on arrow keypad
134  KC_PGUP = 0xC9, // PgUp on arrow keypad
135  KC_LEFT = 0xCB, // LeftArrow on arrow keypad
136  KC_RIGHT = 0xCD, // RightArrow on arrow keypad
137  KC_END = 0xCF, // End on arrow keypad
138  KC_DOWN = 0xD0, // DownArrow on arrow keypad
139  KC_PGDOWN = 0xD1, // PgDn on arrow keypad
140  KC_INSERT = 0xD2, // Insert on arrow keypad
141  KC_DELETE = 0xD3, // Delete on arrow keypad
142  KC_LWIN = 0xDB, // Left Windows key
143  KC_RWIN = 0xDC, // Right Windows key
144  KC_APPS = 0xDD, // AppMenu key
145  KC_POWER = 0xDE, // System Power
146  KC_SLEEP = 0xDF, // System Sleep
147  KC_WAKE = 0xE3, // System Wake
148  KC_WEBSEARCH = 0xE5, // Web Search
149  KC_WEBFAVORITES= 0xE6, // Web Favorites
150  KC_WEBREFRESH = 0xE7, // Web Refresh
151  KC_WEBSTOP = 0xE8, // Web Stop
152  KC_WEBFORWARD = 0xE9, // Web Forward
153  KC_WEBBACK = 0xEA, // Web Back
154  KC_MYCOMPUTER = 0xEB, // My Computer
155  KC_MAIL = 0xEC, // Mail
156  KC_MEDIASELECT = 0xED // Media Select
157 };
158 }
159 #endif
Definition: OISCompat.hpp:154
Definition: OISCompat.hpp:57
Definition: OISCompat.hpp:68
Definition: OISCompat.hpp:67
Definition: OISCompat.hpp:26
Definition: OISCompat.hpp:37
Definition: OISCompat.hpp:39
Definition: OISCompat.hpp:58
Definition: OISCompat.hpp:100
Definition: OISCompat.hpp:95
Definition: OISCompat.hpp:120
Definition: OISCompat.hpp:136
Definition: OISCompat.hpp:84
Definition: OISCompat.hpp:79
Definition: OISCompat.hpp:141
Definition: OISCompat.hpp:150
Definition: OISCompat.hpp:14
Definition: OISCompat.hpp:115
Definition: OISCompat.hpp:32
Definition: OISCompat.hpp:66
Definition: OISCompat.hpp:25
Definition: OISCompat.hpp:123
Definition: OISCompat.hpp:121
Definition: OISCompat.hpp:93
Definition: OISCompat.hpp:116
Definition: OISCompat.hpp:60
Definition: OISCompat.hpp:80
Definition: OISCompat.hpp:72
Definition: OISCompat.hpp:137
Definition: OISCompat.hpp:52
Definition: OISCompat.hpp:92
Definition: OISCompat.hpp:81
Definition: OISCompat.hpp:112
Definition: OISCompat.hpp:131
Definition: OISCompat.hpp:142
Definition: OISCompat.hpp:106
Definition: OISCompat.hpp:86
Definition: OISCompat.hpp:30
Definition: OISCompat.hpp:15
Definition: OISCompat.hpp:145
Definition: OISCompat.hpp:114
Definition: OISCompat.hpp:76
Definition: OISCompat.hpp:42
Definition: OISCompat.hpp:70
Definition: OISCompat.hpp:99
Definition: OISCompat.hpp:155
Definition: OISCompat.hpp:31
Definition: OISCompat.hpp:36
Definition: OISCompat.hpp:151
Definition: OISCompat.hpp:107
Definition: OISCompat.hpp:88
Definition: OISCompat.hpp:35
Definition: OISCompat.hpp:96
Definition: OISCompat.hpp:97
Definition: OISCompat.hpp:90
Definition: OISCompat.hpp:33
Definition: OISCompat.hpp:61
Definition: OISCompat.hpp:40
Definition: OISCompat.hpp:148
Definition: OISCompat.hpp:71
Definition: OISCompat.hpp:48
Definition: OISCompat.hpp:59
Definition: OISCompat.hpp:149
Definition: OISCompat.hpp:110
Definition: OISCompat.hpp:47
Definition: OISCompat.hpp:75
Definition: OISCompat.hpp:24
Definition: OISCompat.hpp:34
Definition: OISCompat.hpp:153
Definition: OISCompat.hpp:27
Definition: OISCompat.hpp:128
Definition: OISCompat.hpp:152
Definition: OISCompat.hpp:91
Definition: OISCompat.hpp:94
Definition: OISCompat.hpp:38
Definition: OISCompat.hpp:119
Definition: OISCompat.hpp:18
Definition: OISCompat.hpp:28
Definition: OISCompat.hpp:103
Definition: OISCompat.hpp:21
Definition: OISCompat.hpp:146
Definition: OISCompat.hpp:104
Definition: OISCompat.hpp:102
Definition: OISCompat.hpp:85
Definition: OISCompat.hpp:156
Definition: OISCompat.hpp:23
Definition: OISCompat.hpp:140
Definition: OISCompat.hpp:29
Definition: OISCompat.hpp:105
Definition: OISCompat.hpp:51
Definition: OISCompat.hpp:89
Definition: OISCompat.hpp:78
Definition: OISCompat.hpp:147
Definition: OISCompat.hpp:56
Definition: OISCompat.hpp:87
Definition: OISCompat.hpp:50
Definition: OISCompat.hpp:13
Definition: OISCompat.hpp:113
Definition: OISCompat.hpp:124
Definition: OISCompat.hpp:129
Definition: OISCompat.hpp:109
Definition: OISCompat.hpp:135
Definition: OISCompat.hpp:20
Definition: OISCompat.hpp:82
Definition: OISCompat.hpp:62
Definition: OISCompat.hpp:55
Definition: OISCompat.hpp:19
Definition: OISCompat.hpp:74
Definition: OISCompat.hpp:77
Definition: OISCompat.hpp:45
Definition: OISCompat.hpp:44
Definition: OISCompat.hpp:111
Definition: OISCompat.hpp:130
Definition: OISCompat.hpp:83
Definition: OISCompat.hpp:41
Definition: OISCompat.hpp:53
Definition: OISCompat.hpp:127
Definition: OISCompat.hpp:63
Definition: OISCompat.hpp:64
Definition: OISCompat.hpp:143
Definition: OISCompat.hpp:126
Definition: OISCompat.hpp:101
Definition: OISCompat.hpp:138
Definition: OISCompat.hpp:118
Definition: OISCompat.hpp:117
Definition: OISCompat.hpp:98
Definition: OISCompat.hpp:73
Definition: OISCompat.hpp:139
Definition: OISCompat.hpp:134
Definition: OISCompat.hpp:54
Definition: OISCompat.hpp:12
Definition: OISCompat.hpp:108
Definition: OISCompat.hpp:144
Definition: OISCompat.hpp:132
Definition: OISCompat.hpp:46
Definition: OISCompat.hpp:22
Definition: OISCompat.hpp:17
Definition: OISCompat.hpp:133
KeyCode
Keyboard scan codes.
Definition: OISCompat.hpp:10
Definition: OISCompat.hpp:43
Definition: OISCompat.hpp:16
Definition: OISCompat.hpp:125
Definition: OISCompat.hpp:65
Definition: OISCompat.hpp:69
Definition: OISCompat.hpp:49
Definition: OISCompat.hpp:122