Forums » MacOS X

Binding to a keypad

Jun 30, 2008 Daare link
What is the syntax for using the keypad for binds on a Mac? I've done a search and have found a few Linux threads and a something very old which hinted that this was already implemented but I can't seem to get it to work.

I've been unsuccessful with the format: bind KP_0 "echo 'Something witty'".

On a G5 iMac running Mac OS X 10.3.9. Using the keyboard with which it came.
Jun 30, 2008 MSKanaka link
You missed a step.

alias witty_echo "echo 'Something witty'"
bind KP_0 witty_echo

You need to make an alias for the echo first, and then bind the alias for it to work.
Jun 30, 2008 Daare link
Thanks. I've added the missing alias to my test but still no joy. I've tried replacing other binds that I know work with the same syntax ("KP_x") and they get stripped from the wgaf.cfg file - there seems to be some sort of check the client does which doesn't want me to use the number pad on my keyboard for anything but numbers.
Jun 30, 2008 raybondo link
The KP_0 stuff only works in Linux right now.

I'll see what I can do about getting it to work on the mac.
Jun 30, 2008 raybondo link
After just checking it, you bind the number keys on the keypad via the normal numbers. The mac version does not distinguish between the numbers across the top and the keypad numbers.
Jul 01, 2008 Daare link
Thanks for all the quick responses. It's a shame we can't use the numberpad as another set of keys - I was hoping to use them for quick chat aliases since my number keys are already spoken for. Can never have too many keys is what I say.
Jul 02, 2008 toshiro link
I was going to say what ray said...

It really annoys me that Apple does not discern between numblock and alphanumeric numbers, though. They effectively rob us of 10 unique keys.
Jul 04, 2008 davejohn link
Hmm, true.

One odd thing, not that it really matters. The white mac keyboard gives both return and enter keys as activate , but the new aluminum keyboard just gives return.
Jul 05, 2008 Daare link
I'm pretty sure Macs *can* tell when you use the numberpad. I've used programs where the numberpad could be configured independently of the numbers at the top of the keyboard.

In particular, I seem to recall a few games which allowed the user to use the numberpad in lieu of the qwe/asd/zxc block of keys for movement. This seemed to work better for left-handed users. Not sure if this is something VO could implement but I wouldn't consider it a high priority.
Jul 08, 2008 toshiro link
Not too low, either, though. But it's good to know I was wrong about that, it gives me more hope :)
Jul 18, 2008 Rejected link
except the left handed players would have to learn how to use a mouse with their right hand
Jul 22, 2008 break19 link
yea, all the civ games can distinguish between keypad and regular keys..

if I hit 5 on my keypad it centers my view on the currently-selected unit, if I hit it on the number row, it does nothing.. I've also used it in many other games, view-wise.

ps. yea.. on my mac

break19
Jul 24, 2008 MSKanaka link
Same deal with Command & Conquer Generals/Zero Hour. Number row keys don't do the same things the numpad keys do.
Aug 09, 2008 raybondo link
Yes, the mac OS can distinguish them, but the mac version of VO does currently not.