summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-01 13:38:35 +0100
committerthat <github@that.at>2015-02-01 13:38:35 +0100
commitf37aec20ddf6f048b9eabea74c72ca844166acfd (patch)
treee3ea4c295be44c9c86e1b59c8027afb17d4fdf43 /gui/objects.hpp
parentgui: fix lag (and event logging) (diff)
downloadandroid_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.tar
android_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.tar.gz
android_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.tar.bz2
android_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.tar.lz
android_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.tar.xz
android_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.tar.zst
android_bootable_recovery-f37aec20ddf6f048b9eabea74c72ca844166acfd.zip
Diffstat (limited to '')
-rw-r--r--gui/objects.hpp13
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;
};