22 #ifndef COMMON_KEYBOARD_H 23 #define COMMON_KEYBOARD_H 25 #include "common/scummsys.h" 27 #if defined(__amigaos4__) || defined(__MORPHOS__) 30 #if defined(KEYCODE_LESS) && defined(KEYCODE_GREATER) 32 #undef KEYCODE_GREATER 51 KEYCODE_BACKSPACE = 8,
59 KEYCODE_QUOTEDBL = 34,
63 KEYCODE_AMPERSAND = 38,
65 KEYCODE_LEFTPAREN = 40,
66 KEYCODE_RIGHTPAREN = 41,
67 KEYCODE_ASTERISK = 42,
84 KEYCODE_SEMICOLON = 59,
88 KEYCODE_QUESTION = 63,
91 KEYCODE_LEFTBRACKET = 91,
92 KEYCODE_BACKSLASH = 92,
93 KEYCODE_RIGHTBRACKET= 93,
95 KEYCODE_UNDERSCORE = 95,
96 KEYCODE_BACKQUOTE = 96,
123 KEYCODE_DELETE = 127,
137 KEYCODE_KP_PERIOD = 266,
138 KEYCODE_KP_DIVIDE = 267,
139 KEYCODE_KP_MULTIPLY = 268,
140 KEYCODE_KP_MINUS = 269,
141 KEYCODE_KP_PLUS = 270,
142 KEYCODE_KP_ENTER = 271,
143 KEYCODE_KP_EQUALS = 272,
150 KEYCODE_INSERT = 277,
153 KEYCODE_PAGEUP = 280,
154 KEYCODE_PAGEDOWN = 281,
177 KEYCODE_NUMLOCK = 300,
178 KEYCODE_CAPSLOCK = 301,
179 KEYCODE_SCROLLOCK = 302,
180 KEYCODE_RSHIFT = 303,
181 KEYCODE_LSHIFT = 304,
188 KEYCODE_LSUPER = 311,
189 KEYCODE_RSUPER = 312,
191 KEYCODE_COMPOSE = 314,
196 KEYCODE_SYSREQ = 317,
205 KEYCODE_VOLUMEUP = 326,
206 KEYCODE_VOLUMEDOWN = 327,
207 KEYCODE_LEFTSOFT = 328,
208 KEYCODE_RIGHTSOFT = 329,
210 KEYCODE_HANGUP = 331,
211 KEYCODE_CAMERA = 332,
214 KEYCODE_CALCULATOR = 335,
218 KEYCODE_SELECT = 339,
219 KEYCODE_CANCEL = 340,
222 KEYCODE_AC_SEARCH = 341,
223 KEYCODE_AC_HOME = 342,
224 KEYCODE_AC_BACK = 343,
225 KEYCODE_AC_FORWARD = 344,
226 KEYCODE_AC_STOP = 345,
227 KEYCODE_AC_REFRESH = 346,
228 KEYCODE_AC_BOOKMARKS = 347,
231 KEYCODE_AUDIONEXT = 348,
232 KEYCODE_AUDIOPREV = 349,
233 KEYCODE_AUDIOSTOP = 350,
234 KEYCODE_AUDIOPLAY = 351,
235 KEYCODE_AUDIOPAUSE = 352,
236 KEYCODE_AUDIOPLAYPAUSE = 353,
237 KEYCODE_AUDIOMUTE = 354,
238 KEYCODE_AUDIOREWIND = 355,
239 KEYCODE_AUDIOFASTFORWARD = 356,
281 KBD_NON_STICKY = (KBD_CTRL|KBD_ALT|KBD_SHIFT|KBD_META),
287 KBD_STICKY = (KBD_NUM|KBD_CAPS|KBD_SCRL)
325 KeyState(KeyCode kc = KEYCODE_INVALID) {
331 KeyState(KeyCode kc, uint16 asc, byte f = 0) {
338 keycode = KEYCODE_INVALID;
352 assert(!(f & KBD_STICKY));
353 return f == (flags & ~KBD_STICKY);
byte flags
Definition: keyboard.h:323
bool hasFlags(byte f) const
Definition: keyboard.h:351
KeyCode keycode
Definition: keyboard.h:299
Definition: algorithm.h:29
Definition: keyboard.h:294
uint16 ascii
Definition: keyboard.h:310
bool operator==(const KeyState &x) const
Definition: keyboard.h:361