diff options
author | Bastien Bouclet | 2017-02-20 18:02:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | f977b5712328133b638c33992d4e111624d1881d (patch) | |
tree | c8480f6b0f9f3f2471f44fa09c894015fdc49ba1 /engines/mohawk/riven_stack.h | |
parent | 9153393219b398ce5a7a8122d9af38e32e128059 (diff) | |
download | scummvm-rg350-f977b5712328133b638c33992d4e111624d1881d.tar.gz scummvm-rg350-f977b5712328133b638c33992d4e111624d1881d.tar.bz2 scummvm-rg350-f977b5712328133b638c33992d4e111624d1881d.zip |
MOHAWK: Rewrite the Riven movie manager
Diffstat (limited to 'engines/mohawk/riven_stack.h')
-rw-r--r-- | engines/mohawk/riven_stack.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/mohawk/riven_stack.h b/engines/mohawk/riven_stack.h index 0ef267e421..e2bee44851 100644 --- a/engines/mohawk/riven_stack.h +++ b/engines/mohawk/riven_stack.h @@ -23,6 +23,7 @@ #ifndef RIVEN_STACK_H #define RIVEN_STACK_H +#include "common/keyboard.h" #include "common/hash-str.h" #include "common/ptr.h" #include "common/rect.h" @@ -129,13 +130,22 @@ public: /** Force the left mouse button to be considered unpressed until the next mouse click */ void mouseForceUp(); + /** Handle a key press event */ + void onKeyPressed(const Common::KeyCode keyCode); + + /** Get the pressed keyboard key if any */ + Common::KeyCode keyGetPressed() const; + + /** Force the keyboard to be considered unpressed until the next key press */ + void keyForceUp(); + // Common external commands void xflies(uint16 argc, uint16 *argv); // Start the "flies" effect // TODO: Misc stuff move elsewhere uint16 getComboDigit(uint32 correctCombo, uint32 digit); void runDemoBoundaryDialog(); - void runEndGame(uint16 video, uint32 delay); + void runEndGame(uint16 videoCode, uint32 delay); void runCredits(uint16 video, uint32 delay); protected: @@ -171,6 +181,8 @@ private: CommandsMap _commands; + Common::KeyCode _keyPressed; + bool _mouseIsDown; Common::Point _mousePosition; Common::Point _mouseDragStartPosition; |