mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 05:16:24 -05:00
mouse_input: Invert conditional in UpdateYuzuSettings()
Allows the struct to be constructed in place.
This commit is contained in:
parent
395997178b
commit
16aadcc354
1 changed files with 6 additions and 4 deletions
|
@ -41,11 +41,13 @@ void Mouse::UpdateThread() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mouse::UpdateYuzuSettings() {
|
void Mouse::UpdateYuzuSettings() {
|
||||||
MouseStatus pad_status{};
|
if (buttons == 0) {
|
||||||
if (buttons != 0) {
|
return;
|
||||||
pad_status.button = last_button;
|
|
||||||
mouse_queue.Push(pad_status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mouse_queue.Push(MouseStatus{
|
||||||
|
.button = last_button,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mouse::PressButton(int x, int y, int button_) {
|
void Mouse::PressButton(int x, int y, int button_) {
|
||||||
|
|
Loading…
Reference in a new issue