button mapping

BlitzMax Forums/BlitzMax Programming/button mapping

cloned(Posted 2006) [#1]
i am working on some button mapping functions

does GetChar() actualy return the KeyCode number or the ascii number?


(tu) ENAY(Posted 2006) [#2]
I use GetChar(), I'm 99% sure it returns the ascii, hence as in get 'char' (character).
So nope, doubt you can use it properly to map buttons too.


Dreamora(Posted 2006) [#3]
You won't use the KeyCode normally anyway. Reason is that if you map stuff like +- etc with keycode it will break on notebooks etc normally quite badly


cloned(Posted 2006) [#4]
then what should i use to button map the keyboard, because i know different countries have different lay out of buttons


Raz(Posted 2006) [#5]
Im currently using the waitkey() command, this obviously halts the program though so I am not too sure if i will keep it for the final release as it won't look all that great.