Skip to content
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

[Feature Request] Swap buttons on PS2 Mouse/Trackball #9204

Closed
1 of 4 tasks
jkutianski opened this issue May 26, 2020 · 5 comments
Closed
1 of 4 tasks

[Feature Request] Swap buttons on PS2 Mouse/Trackball #9204

jkutianski opened this issue May 26, 2020 · 5 comments
Labels
enhancement help wanted stale Issues or pull requests that have become inactive without resolution.

Comments

@jkutianski
Copy link

Feature Request Type

  • Core functionality
  • Add-on hardware support (eg. audio, RGB, OLED screen, etc.)
  • Alteration (enhancement/optimization) of existing feature(s)
  • New behavior

Description

At the moment doesn't exist any way to swap left and rigth button on PS2 mouse connected via QMK.
The Logitech T-SBC-12 trackball integrated on the Compaq MX-11800 has 2 buttons the top is the left button and the botton is the rigth one. For the people that suffers for carpal tunnel syndrome this is very bad because you are forced to use the middle finger in a very unconfortable position for drag and drop. Swapping the buttons solve this problem.

@tyetye
Copy link

tyetye commented Jun 3, 2020

Can you use these defines to accomplish this?

#define PS2_MOUSE_BTN_LEFT      0
#define PS2_MOUSE_BTN_RIGHT     1
#define PS2_MOUSE_BTN_MIDDLE    2

They're documented in qmk's PS/2 Mouse pages.

@jkutianski
Copy link
Author

jkutianski commented Jun 4, 2020

Can you use these defines to accomplish this?

#define PS2_MOUSE_BTN_LEFT      0
#define PS2_MOUSE_BTN_RIGHT     1
#define PS2_MOUSE_BTN_MIDDLE    2

They're documented in qmk's PS/2 Mouse pages.

Nope. If you change these don't affect anything
Check it here https://github.com/qmk/qmk_firmware/blob/master/tmk_core/protocol/ps2_mouse.c

The documentation point to this to define the PS2_MOUSE_SCROLL_BTN_MASK.

@tyetye
Copy link

tyetye commented Jun 4, 2020

Ooh, interesting. Thank you for pointing that out. I was planning to use those in my own project.

@stale
Copy link

stale bot commented Sep 2, 2020

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

@stale stale bot added the stale Issues or pull requests that have become inactive without resolution. label Sep 2, 2020
@stale
Copy link

stale bot commented Oct 3, 2020

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know.

@stale stale bot closed this as completed Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted stale Issues or pull requests that have become inactive without resolution.
Projects
None yet
Development

No branches or pull requests

2 participants