[Scummvm-cvs-logs] SF.net SVN: scummvm: [27619] scummvm/trunk/common/events.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Jun 22 22:33:51 CEST 2007


Revision: 27619
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27619&view=rev
Author:   fingolfin
Date:     2007-06-22 13:33:51 -0700 (Fri, 22 Jun 2007)

Log Message:
-----------
Added 'ASCII_' enum values for certain standard keys, and update comment

Modified Paths:
--------------
    scummvm/trunk/common/events.h

Modified: scummvm/trunk/common/events.h
===================================================================
--- scummvm/trunk/common/events.h	2007-06-22 20:30:52 UTC (rev 27618)
+++ scummvm/trunk/common/events.h	2007-06-22 20:33:51 UTC (rev 27619)
@@ -217,25 +217,31 @@
 };
 
 /**
- * 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
 };
 
 /**


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list