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).
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).