summaryrefslogtreecommitdiffstats
path: root/src/input_common/mouse/mouse_input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_common/mouse/mouse_input.cpp')
-rw-r--r--src/input_common/mouse/mouse_input.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/input_common/mouse/mouse_input.cpp b/src/input_common/mouse/mouse_input.cpp
index b23a7f1cc..10786a541 100644
--- a/src/input_common/mouse/mouse_input.cpp
+++ b/src/input_common/mouse/mouse_input.cpp
@@ -41,11 +41,13 @@ void Mouse::UpdateThread() {
}
void Mouse::UpdateYuzuSettings() {
- MouseStatus pad_status{};
- if (buttons != 0) {
- pad_status.button = last_button;
- mouse_queue.Push(pad_status);
+ if (buttons == 0) {
+ return;
}
+
+ mouse_queue.Push(MouseStatus{
+ .button = last_button,
+ });
}
void Mouse::PressButton(int x, int y, int button_) {