summaryrefslogtreecommitdiffstats
path: root/src/input_common/mouse/mouse_input.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-05-03 01:59:02 +0200
committergerman77 <juangerman-13@hotmail.com>2021-05-03 02:08:33 +0200
commit6e814735747994a6bae02c833e35dc6648f373bd (patch)
treeac8805339be3755730779832b024b2dbcbb12b1f /src/input_common/mouse/mouse_input.h
parentMerge pull request #6269 from lioncash/file-shadow (diff)
downloadyuzu-6e814735747994a6bae02c833e35dc6648f373bd.tar
yuzu-6e814735747994a6bae02c833e35dc6648f373bd.tar.gz
yuzu-6e814735747994a6bae02c833e35dc6648f373bd.tar.bz2
yuzu-6e814735747994a6bae02c833e35dc6648f373bd.tar.lz
yuzu-6e814735747994a6bae02c833e35dc6648f373bd.tar.xz
yuzu-6e814735747994a6bae02c833e35dc6648f373bd.tar.zst
yuzu-6e814735747994a6bae02c833e35dc6648f373bd.zip
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:
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_);