diff options
| author | QMK Bot <[email protected]> | 2021-11-17 12:28:38 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-18 07:28:38 +1100 |
| commit | 2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9 (patch) | |
| tree | 3ddc4f2cc572c632a0027d31d6e3e86af03591bc /tmk_core/protocol/ps2_mouse.c | |
| parent | b06740c933c63a8f82e0a7112f9eeab9bd93687a (diff) | |
| download | qmk_firmware-2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9.tar.gz qmk_firmware-2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9.zip | |
Format code according to conventions (#15193)0.14.31
Diffstat (limited to 'tmk_core/protocol/ps2_mouse.c')
| -rw-r--r-- | tmk_core/protocol/ps2_mouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/ps2_mouse.c b/tmk_core/protocol/ps2_mouse.c index 39251a6434..43c88084d2 100644 --- a/tmk_core/protocol/ps2_mouse.c +++ b/tmk_core/protocol/ps2_mouse.c @@ -158,8 +158,8 @@ static inline void ps2_mouse_convert_report_to_hid(report_mouse_t *mouse_report) #ifdef PS2_MOUSE_INVERT_BUTTONS // swap left & right buttons - uint8_t needs_left = mouse_report->buttons & PS2_MOUSE_BTN_RIGHT; - uint8_t needs_right = mouse_report->buttons & PS2_MOUSE_BTN_LEFT; + uint8_t needs_left = mouse_report->buttons & PS2_MOUSE_BTN_RIGHT; + uint8_t needs_right = mouse_report->buttons & PS2_MOUSE_BTN_LEFT; mouse_report->buttons = (mouse_report->buttons & ~(PS2_MOUSE_BTN_MASK)) | (needs_left ? PS2_MOUSE_BTN_LEFT : 0) | (needs_right ? PS2_MOUSE_BTN_RIGHT : 0); #else // remove sign and overflow flags |
