Hello I would like to use my mouse to help me select my units ect. I know a lot of game dont you bind mouse buttons. To combat this I bound my mouse buttons to my number pad as I rarely use it. The annoying this is PA doesn't seem to work with the number pad. I would love there to be and mod that lets me bind stuff to the number pad keys. Thanks
Isnt the number pad just ... numbers? Or arrow keys, for the weird people that disable the numbers? I wonder if coherent has any chance of realizing they are different.
Nope they count a different keys I'm pretty sure. If I use my number pad keys with a game like TF2 it's says NumPad 1 or just Num 1 instead of just 1.
Yeah true. Using this tester it indeed shows different keys codes: http://www.w3.org/2002/09/tests/keys.html No idea if mousetrap supports them though, at least a quick google did not yield and results.
Mousetrap? Is that some kind of key binding software? As I got built in logitech stuff for that. It bind mouse button to keyboard buttons.
We could just capture the keydown event and use event.which, so it isn't necessary to use mousetrap if it really doesn't support the numpad. I bet it does, though.
I think the Mac bug that prevents Enter from being used for chat originates from this too. It instead reacts to KP_Enter. As far as I know this is due to mousetrap, so mousetrap is at least aware of the distinction between keypad and non-keypad key presses, but it does seem to get confused about them.
If Mousetrap supports it there has to be some magic input for the keybindings that should just work out of the box I guess.
On further inspection, mousetrap doesn't seem know about the numpad. Or at least, isn't supposed to, but I guess some weirdness can occur. It doesn't appear in the source code of mousetrap, so one would have to go with @cptconundrum's suggestion of using events outside of mousetrap.