diff options
Diffstat (limited to '')
-rw-r--r-- | gui/objects.hpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp index c95a9356e..1d20c2abe 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -992,17 +992,22 @@ protected: class HardwareKeyboard { public: - HardwareKeyboard(void); + HardwareKeyboard(); virtual ~HardwareKeyboard(); public: - virtual int KeyDown(int key_code); - virtual int KeyUp(int key_code); - virtual int KeyRepeat(void); + // called by the input handler for key events + int KeyDown(int key_code); + int KeyUp(int key_code); + // called by the input handler when holding a key down + int KeyRepeat(); + + // called by multi-key actions to suppress key-release notifications void ConsumeKeyRelease(int key); private: + int mLastKeyChar; std::set<int> mPressedKeys; }; |