From 6b31b1bbc32ecb021de8b92a02e31621c7d8e45f Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Thu, 16 Jun 2016 17:18:01 +0200 Subject: DM: Add KeyboardInput struct --- engines/dm/eventman.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3