use only numpad numbers and not the regular numbers?

Started by MisterN, August 26, 2012, 10:08:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MisterN

Is it possible to use only the numbers on the numpad and not the other numbers? Thanks
werg

gecko

Torres Baldi Studio
http://torresbaldi.com

handsource-dyko

numlock status of the keyboard perhaps? simpy pressing numlock?

Kloppix

 You could compare the local variables scan_code and ascii to know which keys are in use. However the values are the same when using Numlock :(

Here are the values I got for the "normal" number 8 and the numpad one. Just for curiosity I also tested the normal up-key.

                  normal 8     Numpad: Using Numlock,   W/O Numlock      up-key

scan_code            9                              9                        9              72 

ascii                  56                             56                       0               0