https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/radial-controller-protocol-implementation With a little bit of trial and error (and a crash-course in how the heck HID even works), I figured out how to get the dial to provide haptic feedback! Along the way, I also learned that you can take advantage of the (incorrectly named) Resolution Multiplier field to customize how many "steps" the dial should have, offloading the work to the device itself! Very cool!!
12 lines
186 B
Rust
12 lines
186 B
Rust
mod dpad;
|
|
mod media;
|
|
mod null;
|
|
mod scroll_zoom;
|
|
mod volume;
|
|
|
|
pub use self::dpad::*;
|
|
pub use self::media::*;
|
|
pub use self::null::*;
|
|
pub use self::scroll_zoom::*;
|
|
pub use self::volume::*;
|