Comments (4)
One issue is that the number of reports is hardwired so you also have to update MAX_INPUT_REPORT_ID in our_descriptor.h.
Another is that HID Remapper doesn't currently support array inputs in its own descriptor so you'd have to rewrite the report descriptor without the array.
Something like:
Report ID 4
Report Size 1
Report Count 3
Usage Sys Sleep
Usage Sys Power Down
Usage Sys Wake Up
Input Data,Var,Abs
Report Count 5
Input Const,Var,Abs
from hid-remapper.
I changed the MAX_INPUT_REPORT_ID to 4. But since I'm not a programmer, I didn't understand in which structure to implement the report descriptor. @jfedor2, would you be able to provide guidance on how to rewrite the report descriptor without using an array and where it should be placed within the file? Thank you for your assistance.
from hid-remapper.
Try adding this to the descriptor:
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x80, // Usage (Sys Control)
0xA1, 0x01, // Collection (Application)
0x85, 0x04, // Report ID (4)
0x75, 0x01, // Report Size (1)
0x95, 0x03, // Report Count (3)
0x09, 0x81, // Usage (Sys Power Down)
0x09, 0x82, // Usage (Sys Sleep)
0x09, 0x83, // Usage (Sys Wake Up)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x05, // Report Count (5)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
Or see here: c22ef7f
from hid-remapper.
It works, thank you
from hid-remapper.
Related Issues (20)
- Usage on a Pico without USB input at all => reuse the D+ and D- as GPIO?
- Would you consider RGB output (APA102 and WS2812B)? HOT 1
- Sticky not working as expected for drag-lock on mouse button HOT 4
- Weird issue with zowie ec1-c HOT 4
- Switch Output does not enable controller setup HOT 3
- Feature Request: Control HID Remapper via USB Serial HOT 1
- Home and Back button not forwarded when using hid-remapper HOT 9
- Feature: Monitor control using DDC/CI protocol
- Emulated a single controller using a USB Joystick and a gamepad using free GPIOs HOT 4
- Firmware for nrf52840-mdk-usb-dongle
- Problem with arrow keys in macro HOT 4
- Ensure that the prior key in a tap-hold binding is equal to the tap input key when initiating a tap binding HOT 3
- HID Remapper with hand held speechmike HOT 4
- Unable to get board v5 to work HOT 16
- Clear Layer HOT 3
- Support: Startup (run once) action (and Delay) HOT 4
- How would i? Capslock is Escape, or Control if pressed with a key? HOT 6
- Feature Request: WAIT macro HOT 2
- A single key press HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hid-remapper.