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

Mouse key support in QMK keyboard #115

Open
wants to merge 7 commits into
base: rc
Choose a base branch
from
Open

Conversation

ak66666
Copy link

@ak66666 ak66666 commented Jun 30, 2024

This change made the mouse work with Deskhop in my QMK-base keyboard.

I added a special case to handle mouse keys and touchpad in QMK keyboard.
It is uses report id 2 to detect the mouse endpoint and adjusts the offset value.

This data was captured in Wireshark for the mouse keys and trackpad used in my board:
LEFT : HID Data: 0200f8000000
RIGHT : HID Data: 020008000000
UP : HID Data: 020000f80000
DOWN : HID Data: 020000080000

The original RC branch code treated LEFT mouse key (or trackpad gesture) as UP, so I figured the issue was in that one byte offset. I added the special case for report_id == 2 (which I believe describes the mouse USB endpoint).

@ak66666
Copy link
Author

ak66666 commented Jun 30, 2024

Forgot to mention: this change also fixed all three mouse buttons and up/down wheel scroll too.

Hrvoje Cavrak added 2 commits July 30, 2024 14:19
- Single unified firmware binary
- Improved support for NKRO keyboards
- Report mode default for keyboard port
- Improved consumer control parser for variable
  data types (media keys should be better supported)
- System control forwarding
- Improved HID parser
- Web UI to configure instead of keyboard shortcuts
- Firmware upgrade while the device remains functional
- Only one end will need upgrade, the other will get it automatically
- No need to recompile to set most settings
- Improved UART routines to use DMA, more reliable link
- Fixed a bunch of bugs and issues
@hrvach
Copy link
Owner

hrvach commented Jul 30, 2024

How do you define the mouse keys in a QMK keyboard? I have one and am interested to reproduce the issue locally in case it needs wider fixing.

@ak66666
Copy link
Author

ak66666 commented Jul 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants