-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PS2_MOUSE_ROTATE to compensate for device orientation #8650
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
And has documentation! Thank you for that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this feature, but the base rotation direction seems counter-intuitive to me – when I see #define PS2_MOUSE_ROTATE 270
, my instinct is that 270 would be degrees clockwise rather than anti-clockwise.
All that would need to be done to switch them is to switch the mouse_report->[xy]
statements between PS2_MOUSE_ROTATE == 90
and PS2_MOUSE_ROTATE == 270
.
To me the current setup makes sense, since counterclockwise is traditionally the positive direction of rotation in math and engineering. |
I've updated the docs to clarify the rotation direction. |
Co-Authored-By: Konstantin Đorđević <[email protected]>
Thanks! |
Thanks everyone! |
* master: (3035 commits) [Keymap] Update personal userspace and keymaps (qmk#8747) Add PS2_MOUSE_ROTATE to compensate for device orientation (qmk#8650) Add RGB support in via to launchpad (qmk#8621) VIA support for the KBDFans KBD6x (qmk#8680) Set the correct RGB LED count on YD60MQ (qmk#8629) [Keymap] Updates to personal keymaps (qmk#8665) Fix compile issues related to NO_ACTION_MACRO/FUNCTION and LTO_ENABLE (qmk#8663) [Keymap] Userspace update Rgb layers code (qmk#8659) Add Choconum (qmk#8709) Add Via keymap for BM16-A (qmk#8681) Fix edge-case with config Don't hide for devs... Apply @skullydazed's suggestions, move 'import milc' Make dedicated sections for user/dev commands in docs Rebase on master, hide some other subcommands Use milc for config check, requirements fixes CLI: Add development mode support Update info.json (qmk#8723) format code according to conventions [skip ci] spi_master for AVR (qmk#8299) ... # Conflicts: # layouts/community/ortho_4x12/grahampheath/keymap.c # lib/lufa
* master: (208 commits) [Keymap] Update personal userspace and keymaps (qmk#8747) Add PS2_MOUSE_ROTATE to compensate for device orientation (qmk#8650) Add RGB support in via to launchpad (qmk#8621) VIA support for the KBDFans KBD6x (qmk#8680) Set the correct RGB LED count on YD60MQ (qmk#8629) [Keymap] Updates to personal keymaps (qmk#8665) Fix compile issues related to NO_ACTION_MACRO/FUNCTION and LTO_ENABLE (qmk#8663) [Keymap] Userspace update Rgb layers code (qmk#8659) Add Choconum (qmk#8709) Add Via keymap for BM16-A (qmk#8681) Fix edge-case with config Don't hide for devs... Apply @skullydazed's suggestions, move 'import milc' Make dedicated sections for user/dev commands in docs Rebase on master, hide some other subcommands Use milc for config check, requirements fixes CLI: Add development mode support Update info.json (qmk#8723) format code according to conventions [skip ci] spi_master for AVR (qmk#8299) ...
* master: (208 commits) [Keymap] Update personal userspace and keymaps (qmk#8747) Add PS2_MOUSE_ROTATE to compensate for device orientation (qmk#8650) Add RGB support in via to launchpad (qmk#8621) VIA support for the KBDFans KBD6x (qmk#8680) Set the correct RGB LED count on YD60MQ (qmk#8629) [Keymap] Updates to personal keymaps (qmk#8665) Fix compile issues related to NO_ACTION_MACRO/FUNCTION and LTO_ENABLE (qmk#8663) [Keymap] Userspace update Rgb layers code (qmk#8659) Add Choconum (qmk#8709) Add Via keymap for BM16-A (qmk#8681) Fix edge-case with config Don't hide for devs... Apply @skullydazed's suggestions, move 'import milc' Make dedicated sections for user/dev commands in docs Rebase on master, hide some other subcommands Use milc for config check, requirements fixes CLI: Add development mode support Update info.json (qmk#8723) format code according to conventions [skip ci] spi_master for AVR (qmk#8299) ...
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per qmk#6316
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist