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

Numberpad Keybindings? #9

Open
CiscoSixFour opened this issue Dec 25, 2021 · 2 comments
Open

Numberpad Keybindings? #9

CiscoSixFour opened this issue Dec 25, 2021 · 2 comments

Comments

@CiscoSixFour
Copy link

Hi, do numberpad keys work for keybindings? I've tried KP_1 and it does not work. Perhaps they go by a different name? Sorry I have no idea how to check :P

@LtPeriwinkle
Copy link
Owner

LtPeriwinkle commented Dec 25, 2021

It does support numberpad keys, and I'm currently using the SDL bindings to read key names and translate them. Sometimes it is a little funny, and in this case it wants you to use Keypad 1 etc for the numberpad numbers. One day will get around to either writing up a proper list or writing a proper parser, because as far as I know there's not really a list of what strings it will take.

@Vulpesx
Copy link

Vulpesx commented Jun 8, 2022

all of the keypad numbers have other functionality and as such the keycodes are not just KP_[num]
here is a helpful list of codes:
0 => KP_Insert
1 => KP_End
2 => KP_Down
3 => LP_Next
4 => KP_Left
5 => KP_Begin
6 => KP_Right
7 => KP_Home
8 => KP_Up
9 => KP_Prior

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

3 participants