diff options
author | RichieSams | 2013-09-15 14:05:25 -0500 |
---|---|---|
committer | RichieSams | 2013-09-15 14:06:11 -0500 |
commit | c20a9ac6ae3cac5ff45d5d2329ff8571d507b01f (patch) | |
tree | c7c16123a1ed5c2348b2ad99c96dae74421dd261 | |
parent | d643ca1571eef1f81b5880fcb796f1ee268ef234 (diff) | |
download | scummvm-rg350-c20a9ac6ae3cac5ff45d5d2329ff8571d507b01f.tar.gz scummvm-rg350-c20a9ac6ae3cac5ff45d5d2329ff8571d507b01f.tar.bz2 scummvm-rg350-c20a9ac6ae3cac5ff45d5d2329ff8571d507b01f.zip |
ZVISION: Add key press support to Controls
-rw-r--r-- | engines/zvision/control.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/zvision/control.h b/engines/zvision/control.h index 9144c32dd4..baa2dfb4f3 100644 --- a/engines/zvision/control.h +++ b/engines/zvision/control.h @@ -25,6 +25,8 @@ #include "common/types.h" +#include "common/keyboard.h" + namespace Common { class SeekableReadStream; @@ -69,6 +71,18 @@ public: */ virtual bool onMouseMove(const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) { return false; } /** + * Called when a key is pressed. Default is NOP. + * + * @param keycode The key that was pressed + */ + virtual void onKeyDown(Common::KeyState keyState) {} + /** + * Called when a key is released. Default is NOP. + * + * @param keycode The key that was pressed + */ + virtual void onKeyUp(Common::KeyState keyState) {} + /** * Processes the node given the deltaTime since last frame. Default is NOP. * * @param deltaTimeInMillis The number of milliseconds that have passed since last frame |