aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/include/uinput.h
diff options
context:
space:
mode:
authorFilippos Karapetis2009-02-25 19:52:17 +0000
committerFilippos Karapetis2009-02-25 19:52:17 +0000
commit71ae2d3aba4a47a3fecf2cea02528ec2763ee6fc (patch)
treebc4352b722674d261ce8059a72164a343eff3d2e /engines/sci/include/uinput.h
parentc199c6c6c4652306c4660e4736f054175e4f0b25 (diff)
downloadscummvm-rg350-71ae2d3aba4a47a3fecf2cea02528ec2763ee6fc.tar.gz
scummvm-rg350-71ae2d3aba4a47a3fecf2cea02528ec2763ee6fc.tar.bz2
scummvm-rg350-71ae2d3aba4a47a3fecf2cea02528ec2763ee6fc.zip
Reverted my wrong commit #38870. Most of the key codes are handled by the engine itself, however there are cases where they are handled by the game scripts, e.g. in save/load dialogs. The arrow keys in the save/load dialogs should work properly again. The numpad keys still look to be broken by some other commit
svn-id: r38886
Diffstat (limited to 'engines/sci/include/uinput.h')
-rw-r--r--engines/sci/include/uinput.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/sci/include/uinput.h b/engines/sci/include/uinput.h
index dbf8cc424f..5c003f3c06 100644
--- a/engines/sci/include/uinput.h
+++ b/engines/sci/include/uinput.h
@@ -69,9 +69,23 @@ struct sci_event_t {
/* Keycodes of special keys: */
+#define SCI_K_ESC 27
+#define SCI_K_BACKSPACE 8
+#define SCI_K_ENTER 13
+#define SCI_K_TAB '\t'
#define SCI_K_SHIFT_TAB (0xf << 8)
+#define SCI_K_END (79 << 8)
+#define SCI_K_DOWN (80 << 8)
+#define SCI_K_PGDOWN (81 << 8)
+#define SCI_K_LEFT (75 << 8)
#define SCI_K_CENTER (76 << 8)
+#define SCI_K_RIGHT (77 << 8)
+#define SCI_K_HOME (71 << 8)
+#define SCI_K_UP (72 << 8)
+#define SCI_K_PGUP (73 << 8)
+#define SCI_K_INSERT (82 << 8)
+#define SCI_K_DELETE (83 << 8)
#define SCI_K_F1 (59<<8)
#define SCI_K_F2 (60<<8)