diff options
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/widget.h b/gui/widget.h index bf15081f79..c19059d32c 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -27,6 +27,7 @@ #include "common/scummsys.h" #include "common/str.h" +#include "common/keyboard.h" #include "graphics/font.h" #include "graphics/surface.h" #include "gui/object.h" @@ -127,8 +128,8 @@ public: virtual void handleMouseLeft(int button) {} virtual void handleMouseMoved(int x, int y, int button) {} virtual void handleMouseWheel(int x, int y, int direction) {} - virtual bool handleKeyDown(uint16 ascii, int keycode, int modifiers) { return false; } // Return true if the event was handled - virtual bool handleKeyUp(uint16 ascii, int keycode, int modifiers) { return false; } // Return true if the event was handled + virtual bool handleKeyDown(Common::KeyState state) { return false; } // Return true if the event was handled + virtual bool handleKeyUp(Common::KeyState state) { return false; } // Return true if the event was handled virtual void handleTickle() {} virtual void reflowLayout() { GuiObject::reflowLayout(); } |