twitchyliquid64 / usbd-hid

MIT License
88 stars 37 forks source link

Support horizontal scroll/pan + more mouse buttons #29

Closed antonok-edm closed 3 years ago

antonok-edm commented 3 years ago

I added support for horizontal scrolling (also known as pan) in the default MouseReport.

I also increased the maximum number of supported buttons to 8 - this still fits in a byte and enables Back/Forward and additional app-specific buttons.

twitchyliquid64 commented 3 years ago

Thanks! Did you get the chance to test it on any platforms? In particular im interested if windows considers this a valid pointer device (given it deviates from the standard 'mouse' descriptor in the spec)

antonok-edm commented 3 years ago

I've been developing it to work with a Linux host, and since you mentioned it I've just confirmed that it works on a Windows machine as well.

haata commented 3 years ago

Is there a particular reason to use PAN instead of AC_PAN as it's called in the HID Spec?

antonok-edm commented 3 years ago

Nope, that's a good point - fixed!