aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2007-06-22 17:51:51 +0000
committerMax Horn2007-06-22 17:51:51 +0000
commit55f93678b8589b74922609d55774222ee7119f55 (patch)
tree559ac837c9244197e5b4da09d65854731c464e36 /common
parent39405cbb25b5376660dfb0852f2aa1cf1e337888 (diff)
downloadscummvm-rg350-55f93678b8589b74922609d55774222ee7119f55.tar.gz
scummvm-rg350-55f93678b8589b74922609d55774222ee7119f55.tar.bz2
scummvm-rg350-55f93678b8589b74922609d55774222ee7119f55.zip
Heavily modified/reduced version of patch #1741454 (EVENTS: ASCII enum)
svn-id: r27612
Diffstat (limited to 'common')
-rw-r--r--common/events.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h
index 0330f4b417..253c9f053c 100644
--- a/common/events.h
+++ b/common/events.h
@@ -217,6 +217,25 @@ 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.
+ */
+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
+};
+
+/**
* Keyboard modifier flags, used for Event::kbd::flags.
*/
enum {