Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric keypad support ? #15

Open
andi968 opened this issue Mar 29, 2017 · 2 comments
Open

Numeric keypad support ? #15

andi968 opened this issue Mar 29, 2017 · 2 comments

Comments

@andi968
Copy link

andi968 commented Mar 29, 2017

Is it possible to add numeric keypad support to the library?
The /*-+ all work fine, however the 0-9 do not but do produce the following response
Actual Key pressed GetOemKey response
1 = 89,
2 = 90,
3 = 91,
4 = 92,
5 = 93,
6 = 94,
7 = 95,
8 = 96,
9 = 97,
0 = 98

@Pigeo
Copy link

Pigeo commented Jul 20, 2017

Be careful : you have to take into account the status of the numlock in order to know e.g. if key 92 should be interpreted as "4" or as "left arrow"... It would be nice if the library could handle that for us.

@Pigeo
Copy link

Pigeo commented Jul 20, 2017

I have just tested on my DUE and to me there's no bug : this library is working as expected (by default, the numlock is off and the keypad keys don't give numbers, but if you first press the numlock, then you'll have numbers).

What is maybe confusing you is that the numlock is off by default. Would be great to have a function to change the status of numlock by software, or to put it ON by default, but I don't know if the HID keyboard boot protocol allows us to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants