Caps/NumLock state of keyboard (USB)

1 post / 0 new
whose
whose's picture
Offline
Last seen: 6 years 4 months ago
Joined: 2011-08-09 02:25
Caps/NumLock state of keyboard (USB)

Hello!

I did some little DOS script utilities lately and try to make a key state utility.

Its quite easy to ask at least for the CapsLock state using keyboard.device, but this works for PS/2 keyboards only.

Is there any way to do the same for USB keyboards? Documentation is scarce on this and it seems that hid.fdclass feeds input.device directly, without replacing keyboard.device by a compatible device layer.