aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-16 17:18:01 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit6b31b1bbc32ecb021de8b92a02e31621c7d8e45f (patch)
treecfa3f595ee7901b1574bfd00fa2eff73c99fd956 /engines
parent28874dee1f555abbc31e4ea85bd92c3dd71d1c03 (diff)
downloadscummvm-rg350-6b31b1bbc32ecb021de8b92a02e31621c7d8e45f.tar.gz
scummvm-rg350-6b31b1bbc32ecb021de8b92a02e31621c7d8e45f.tar.bz2
scummvm-rg350-6b31b1bbc32ecb021de8b92a02e31621c7d8e45f.zip
DM: Add KeyboardInput struct
Diffstat (limited to 'engines')
-rw-r--r--engines/dm/eventman.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/dm/eventman.h b/engines/dm/eventman.h
index 996443df07..ae3eb90b35 100644
--- a/engines/dm/eventman.h
+++ b/engines/dm/eventman.h
@@ -167,6 +167,14 @@ extern MouseInput gPrimaryMouseInput_ScreenDialog3Choices[4]; // @ G0477_as_Grap
extern MouseInput gPrimaryMouseInput_ScreenDialog4Choices[5]; // @ G0478_as_Graphic561_PrimaryMouseInput_ScreenDialog4Choices[5]
extern MouseInput* gPrimaryMouseInput_DialogSets[2][4]; // @ G0480_aaps_PrimaryMouseInput_DialogSets
+class KeyboardInput {
+public:
+ Command commandToIssue;
+ Common::KeyCode key;
+ byte modifiers;
+
+ KeyboardInput(Command command, Common::KeyCode keycode, byte modifierFlags) : commandToIssue(command), key(keycode), modifiers(modifierFlags) {}
+}; // @ KEYBOARD_INPUT
class DMEngine;