diff options
author | bunnei <bunneidev@gmail.com> | 2017-03-20 11:13:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 11:13:52 -0400 |
commit | a48e5c64b65c99aea859f5941028f42b117fb8e4 (patch) | |
tree | b23a5f598b6a0a4b7346e2be7839f2cd4b5de2a5 /src/input_common/keyboard.h | |
parent | 2f625f2c6f2e50cad67fd6644d3fd11d0458920b (diff) | |
parent | 560884336f706846545cd4c3243002ccb03cfe6d (diff) |
Merge pull request #2630 from wwylele/qt-focus-loss-2
Qt: Release all pressed buttons when window focus is lost [rebased]
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: */ void ReleaseKey(int key_code); + void ReleaseAllKeys(); + private: std::shared_ptr<KeyButtonList> key_button_list; }; |