mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
WindowServer+MouseSettings: Improve buttons_switched
naming
Before this commit it was a bit ambiguous which buttons the function name were referring to; this instead now makes it clear that it's related to mouse input. Additionally, this also fixes incorrect getter naming leftover from yesteryear.
This commit is contained in:
parent
83380ebebc
commit
01cdd3f181
9 changed files with 22 additions and 22 deletions
|
@ -85,7 +85,7 @@ void EventLoop::drain_mouse()
|
|||
|
||||
// Swap primary (1) and secondary (2) buttons if checked in Settings.
|
||||
// Doing the swap here avoids all emulator and hardware issues.
|
||||
if (WindowManager::the().get_buttons_switched()) {
|
||||
if (WindowManager::the().are_mouse_buttons_switched()) {
|
||||
bool has_primary = state.buttons & MousePacket::Button::LeftButton;
|
||||
bool has_secondary = state.buttons & MousePacket::Button::RightButton;
|
||||
state.buttons = state.buttons & ~(MousePacket::Button::LeftButton | MousePacket::Button::RightButton);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue