Bennu Game Development

English Forums => Helpdesk => Topic started by: MisterN on August 26, 2012, 10:08:32 PM

Title: use only numpad numbers and not the regular numbers?
Post by: MisterN on August 26, 2012, 10:08:32 PM
Is it possible to use only the numbers on the numpad and not the other numbers? Thanks
Title: Re:use only numpad numbers and not the regular numbers?
Post by: gecko on August 27, 2012, 03:38:05 AM
http://wiki.bennugd.org/index.php?title=Scancodes

They don't appear there. So i don't know.
Title: Re:use only numpad numbers and not the regular numbers?
Post by: handsource-dyko on August 27, 2012, 07:09:14 AM
numlock status of the keyboard perhaps? simpy pressing numlock?
Title: Re:use only numpad numbers and not the regular numbers?
Post by: Kloppix on August 27, 2012, 05:23:27 PM
 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