diff options
| author | Derek J. Clark <derekjohn.clark@gmail.com> | 2026-04-19 07:26:23 +0300 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-05-12 18:55:57 +0300 |
| commit | e4c850a6e750ae9878e9a9329ba7863ab5b4a756 (patch) | |
| tree | 52bbb1c5b67d4d7e4300297805568a82966a0a68 /include/linux/timerqueue.h | |
| parent | 2f424f28fb39fa3afc1cd73d4191af0262016ea2 (diff) | |
| download | linux-e4c850a6e750ae9878e9a9329ba7863ab5b4a756.tar.xz | |
HID: hid-oxp: Add Button Mapping Interface
Adds button mapping interface for second generation OneXPlayer
configuration HID interfaces. This interface allows the MCU to swap
button mappings at the hardware level. The current state cannot be
retrieved, and the mappings may have been modified in Windows prior, so
we reset the button mapping at init and expose an attribute to allow
userspace to do this again at any time.
The interface requires two pages of button mapping data to be sent
before the settings will take place. Since the MCU requires a 200ms
delay after each message (total 400ms for these attributes) use the same
debounce work queue method we used for RGB. This will allow for
userspace or udev rules to rapidly map all buttons. The values will
be cached before the final write is finally sent to the device.
Reviewed-by: Zhouwang Huang <honjow311@gmail.com>
Tested-by: Zhouwang Huang <honjow311@gmail.com>
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
