diff options
author | wwylele <wwylele@gmail.com> | 2017-03-17 21:41:25 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-03-17 21:41:25 +0200 |
commit | 5245c86f2662caa0e1e4b20508608b11237993b3 (patch) | |
tree | 5e489260c666bf8f09891e7678bfa5661dfd1c8c /src/input_common/keyboard.h | |
parent | 423ab5e2bcf5a522e5f412447c05f648df57a14c (diff) |
citra-qt: release all buttons when render window focus is lost
credit to @Hawkheart for the original idea
Diffstat (limited to 'src/input_common/keyboard.h')
-rw-r--r-- | src/input_common/keyboard.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_common/keyboard.h b/src/input_common/keyboard.h index 76359aa305..8619504729 100644 --- a/src/input_common/keyboard.h +++ b/src/input_common/keyboard.h @@ -38,6 +38,8 @@ public: */ void ReleaseKey(int key_code); + void ReleaseAllKeys(); + private: std::shared_ptr<KeyButtonList> key_button_list; }; |