migueltk's picture

How to detect Key Pad Up, Down, Left and Right keys?

I understand that it would be logical to have the keys:

OpenTK.Input.Key.KeypadUp
OpenTK.Input.Key.KeypadDown
OpenTK.Input.Key.KeypadLeft
OpenTK.Input.Key.KeypadRight

Why no? Can do differently?

Help, please ...


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
punkkeks's picture

Are you serious?
The Keypad is the Digitpad on the right of your keypad, not the keyboard itself. Use Key.Up, Key.Down ... instead. This could be done by thinking and searching.

make sure to check out this website.

Regards

migueltk's picture

Formulate the question differently.

There is a method equivalent to the method System.Windows.Forms.Control.IsKeyLocked (Keys.NumLock) in OpenTK. I have not found it, does anyone know how to do this?.

To punkkeks, you can be sure that before a propose a question in this forum I have searched for a solution.

Regards

jeske's picture

I'm interpreting this (old) question to be... How do you detect the state-of-numlock using OpenTK input?

In a quick look through the code, I don't see any way do it. I'll fish some more and if there is no way, I'll add one in my branch on github.

https://github.com/jeske/opentk