From 8a658e01878150f0163c91f88ab0747294a740be Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 22 Jun 2007 20:33:51 +0000 Subject: Added 'ASCII_' enum values for certain standard keys, and update comment svn-id: r27619 --- common/events.h | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) (limited to 'common') 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 }; /** -- cgit v1.2.3