diff options
-rw-r--r-- | common/events.h | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/common/events.h b/common/events.h index d52ae1f739..bfbe48e9e5 100644 --- a/common/events.h +++ b/common/events.h @@ -217,25 +217,31 @@ enum KeyCode { }; /** - * List of fake 'ascii' values used in keyboard events. - * The values here are based on what certain SCUMM games require - * in their scripts. - * @todo Get rid of this, and instead enforce that engines use the - * keycode instead to handle these. + * List of certan special and some fake 'ascii' values used in keyboard events. + * The values for the function keys listed here are based on what certain SCUMM + * games expect in their scripts. + * @todo Get rid of the function key values, and instead enforce that engines use + * the keycode value to handle these. */ enum { - ASCII_F1 = 315, - ASCII_F2 = 316, - ASCII_F3 = 317, - ASCII_F4 = 318, - ASCII_F5 = 319, - ASCII_F6 = 320, - ASCII_F7 = 321, - ASCII_F8 = 322, - ASCII_F9 = 323, - ASCII_F10 = 324, - ASCII_F11 = 325, - ASCII_F12 = 326 + ASCII_BACKSPACE = 8, + ASCII_TAB = 9, + ASCII_RETURN = 13, + ASCII_ESCAPE = 27, + ASCII_SPACE = 32, + + ASCII_F1 = 315, + ASCII_F2 = 316, + ASCII_F3 = 317, + ASCII_F4 = 318, + ASCII_F5 = 319, + ASCII_F6 = 320, + ASCII_F7 = 321, + ASCII_F8 = 322, + ASCII_F9 = 323, + ASCII_F10 = 324, + ASCII_F11 = 325, + ASCII_F12 = 326 }; /** |