Skip to content

Commit

Permalink
DM: Add KeyboardInput struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent 28874de commit 6b31b1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/dm/eventman.h
Expand Up @@ -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;

Expand Down

0 comments on commit 6b31b1b

Please sign in to comment.