Binding to the NumPad

  • Thread starter Thread starter dancingisillegal
  • Start date Start date
D

dancingisillegal

Guest
Hello,

I am running out of convienient binding space on my keyboard, and I have yet to figure out how to bind things to the numpad. If anyone knows how, I would greatly appreciate an explanation.
 
Well make sure your num lock is on firstly. Have you tried to bind "num 0" "command" like that? I've never had to use them but i'd always assumed it was num 1, num 2 etc...
 
I tried bind num1 "command"
bind "num 1" "command"​

Didn't have much luck with either.
 
Try bind end "command"
or bind numend "command"
 
So long as you have Num Lock on, you should be able to bind numpad keys in the options menu... I know I certainly can, and use around half the numpad numbers for most games.
 
well, from experience, I've had to use "kp_end, kp_leftarrow, kp_righarrow, kp_uparrow, etc, etc..."
 
The number pad buttons are called something else entirely.

For instace to bind to number pad 1, its kp_end
For number pad 2, its: kp_downarrow
The rest will follow this pattern and use rightarrow/leftarrow/uparrow for numbers 4, 6 and 8. Numbers 9 and 7 will also be: kp_home for 7 and kp_pgup for 9.

Last but not least, to bind to 5, its kp_5. Hope thats not too confusing. So it should look like this: bind kp_end "command"
 
Try: bind Numpad 'x' "command", where 'x' is the key you want to bind- this is how it's done in other (i.e. id software) games, and Valve probably use the same syntax (why reinvent the wheel?).
 
Thanks Dumb Dude, you're right. I got it working.

Thanks for the replies everyone. This is a very fast replying forum. Very helpful too.
 
Back
Top