summaryrefslogtreecommitdiff
path: root/src/input_common/keyboard.h
diff options
context:
space:
mode:
authorGravatar wwylele2017-03-17 21:41:25 +0200
committerGravatar wwylele2017-03-17 21:41:25 +0200
commit5245c86f2662caa0e1e4b20508608b11237993b3 (patch)
tree5e489260c666bf8f09891e7678bfa5661dfd1c8c /src/input_common/keyboard.h
parentMerge pull request #2497 from wwylele/input-2 (diff)
downloadyuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.gz
yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.xz
yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.zip
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_common/keyboard.h b/src/input_common/keyboard.h
index 76359aa30..861950472 100644
--- a/src/input_common/keyboard.h
+++ b/src/input_common/keyboard.h
@@ -38,6 +38,8 @@ public:
38 */ 38 */
39 void ReleaseKey(int key_code); 39 void ReleaseKey(int key_code);
40 40
41 void ReleaseAllKeys();
42
41private: 43private:
42 std::shared_ptr<KeyButtonList> key_button_list; 44 std::shared_ptr<KeyButtonList> key_button_list;
43}; 45};