Scroll Lock led in gamepad modes

would it be easy to implement Scroll Lock/Num Lock/Caps Lock LEDs to be inputs when HID remapper is Emulating a gamepad

You’d basically have to make it a gamepad/keyboard hybrid. Which I guess could work, I haven’t tried.

im not sure how to do that but if someone could show me that would be great

Thanks for a great project

I have a wierd device that I am replicating. It was built using Franks Workshop Generic HID. So far I have modified the Hori Gamepad report to be Multi-axis instead of Gamepad to get the buttons to work the same. But that report descriptor does not include the LEDS. Can I add that section from the keyboard report and expect it to work. Or is the solution more complex?

The Configurator let me assign those LED’s to GPIO pins.

Should work. You might have to also add “handle_set_report” for your descriptor, similar to the keyboard one, but maybe not, since the Horipad emulated device type has an OUT endpoint. Why don’t you try it and see how it goes.

Success,

I changed the device type to MultiAxis, added the report details for the 4 leds and the call to “handle_set_report”. Since the Horipad doesn’t use Report ID’s(default is 0x00), I left that out. (For @Daniel, the MultiAxis was to get the button id’s correct for my use, it doesn’t affect getting the LED’s)

After spending a week with different not-quite-working debug probes, I finally have a combination of DAP42 on an STM32, VS code and Windows Subsystem of Linux that is reliable. 15 minutes of debugging with breakpoints and now the LED’s work.

Thank you for your help,