diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-03 12:50:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 12:50:19 -0700 |
commit | 898aa5fb6612e8c009fa65224ef9ea404448db59 (patch) | |
tree | 73c9803fabc9b170b11bff6a73e9b4030afbbce6 /src/input_common/mouse/mouse_input.h | |
parent | 707ed72a3cba2a92ea7e7f8488b9f4232d8da072 (diff) | |
parent | 6e814735747994a6bae02c833e35dc6648f373bd (diff) |
Merge pull request #6275 from german77/mousefocus
input_common: Release mouse buttons on out of focus
Diffstat (limited to 'src/input_common/mouse/mouse_input.h')
-rw-r--r-- | src/input_common/mouse/mouse_input.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/input_common/mouse/mouse_input.h b/src/input_common/mouse/mouse_input.h index 750d9b011..5a971ad67 100644 --- a/src/input_common/mouse/mouse_input.h +++ b/src/input_common/mouse/mouse_input.h @@ -65,10 +65,16 @@ public: void MouseMove(int x, int y, int center_x, int center_y); /** - * Signals that a motion sensor tilt has ended. + * Signals that a button is released. + * @param button_ the button pressed */ void ReleaseButton(MouseButton button_); + /** + * Signals that all buttons are released + */ + void ReleaseAllButtons(); + [[nodiscard]] bool ToggleButton(std::size_t button_); [[nodiscard]] bool UnlockButton(std::size_t button_); |