USB host num lock differences between keyboards/numpads.

RyanDe

New member
I got a new numpad and I noticed that it actually fires the num lock key press and release before and after the actual key I press. It appears for my existing keyboard and numpad that the numpad key is only fired if pressed, like this:

Code:
press 1241 4611 - 83
release 1241 4611 - 83

Then when I press "1" I get
Code:
press 1241 4611 - 89
release 1241 4611 - 89

but on this new numpad nothing is fired when I press the num lock button and instead this is sent when I press "1"

Code:
press 5050 1 - 83
release 5050 1 - 83
press 5050 1 - 89
release 5050 1 - 89
press 5050 1 - 83
release 5050 1 - 83

The other numbers are the vendor and productid so ignore those.
I'm using attachRawRelease and attachRawPress to get this information.

This seems odd but maybe this is still within spec? Could this be something within the library and how it interprets key strokes?
 
I'm also seeing with one of the new ones (wireless) that it also sends a rouge 103 (0x66) press with no release. I can't find this key code anywhere so I have no idea what it is.
 
Back
Top