diff options
| author | 2017-03-17 21:41:25 +0200 | |
|---|---|---|
| committer | 2017-03-17 21:41:25 +0200 | |
| commit | 5245c86f2662caa0e1e4b20508608b11237993b3 (patch) | |
| tree | 5e489260c666bf8f09891e7678bfa5661dfd1c8c /src/input_common/keyboard.h | |
| parent | Merge pull request #2497 from wwylele/input-2 (diff) | |
| download | yuzu-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.h | 2 |
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 | |||
| 41 | private: | 43 | private: |
| 42 | std::shared_ptr<KeyButtonList> key_button_list; | 44 | std::shared_ptr<KeyButtonList> key_button_list; |
| 43 | }; | 45 | }; |