diff options
| -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 | 
