LtPeriwinkle / mist

minimal, improved speedrun timer
Apache License 2.0
37 stars 2 forks source link

Numberpad Keybindings? #9

Open CiscoSixFour opened 2 years ago

CiscoSixFour commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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