I've stripped out everything not strictly required for mouse button HID support. This include dropping the worker thread completely, shaving down the USB HID descriptor. Flattening the mouse/ source directory structure and removing a bunch of event handling. I have kept the mouse event handling separate from the other HID event handling since I figured that was a pretty neat split. If that's a bad idea, do tell. I've also added a test case for mouse button emulation, since that was untested before. The changes have been tested on a corne (split) in usb mode. Bindings on both the left and the right side works (with the left side as master).
10 lines
292 B
Text
10 lines
292 B
Text
press: Button 0 count 1
|
|
press: Mouse buttons set to 0x01
|
|
press: Button 1 count 1
|
|
press: Mouse buttons set to 0x03
|
|
release: Button 1 count: 0
|
|
release: Button 1 released
|
|
release: Mouse buttons set to 0x01
|
|
release: Button 0 count: 0
|
|
release: Button 0 released
|
|
release: Mouse buttons set to 0x00
|