summaryrefslogtreecommitdiff
path: root/src/input_common/mouse/mouse_input.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-05-03 12:50:19 -0700
committerGravatar GitHub2021-05-03 12:50:19 -0700
commit898aa5fb6612e8c009fa65224ef9ea404448db59 (patch)
tree73c9803fabc9b170b11bff6a73e9b4030afbbce6 /src/input_common/mouse/mouse_input.h
parentMerge pull request #6277 from german77/touchsetting2 (diff)
parentinput_common: Release mouse buttons on out of focus (diff)
downloadyuzu-898aa5fb6612e8c009fa65224ef9ea404448db59.tar.gz
yuzu-898aa5fb6612e8c009fa65224ef9ea404448db59.tar.xz
yuzu-898aa5fb6612e8c009fa65224ef9ea404448db59.zip
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.h8
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:
65 void MouseMove(int x, int y, int center_x, int center_y); 65 void MouseMove(int x, int y, int center_x, int center_y);
66 66
67 /** 67 /**
68 * Signals that a motion sensor tilt has ended. 68 * Signals that a button is released.
69 * @param button_ the button pressed
69 */ 70 */
70 void ReleaseButton(MouseButton button_); 71 void ReleaseButton(MouseButton button_);
71 72
73 /**
74 * Signals that all buttons are released
75 */
76 void ReleaseAllButtons();
77
72 [[nodiscard]] bool ToggleButton(std::size_t button_); 78 [[nodiscard]] bool ToggleButton(std::size_t button_);
73 [[nodiscard]] bool UnlockButton(std::size_t button_); 79 [[nodiscard]] bool UnlockButton(std::size_t button_);
74 80