Here is wich scancodes it is on my keyboard , its not all its a few of them that can be good for your game. Im currently using Swedish DELL keyboard.
[*]Q: 16
[*]W: 17
[*]E: 18
[*]R: 19
[*]T: 20
[*]Y: 21
[*]U: 22
[*]I: 23
[*]O: 24
[*]P: 25
[*]Å: 26
[*]¨^~: 27
[*]A: 30
[*]S: 31
[*]D: 32
[/list][list]
[*]F: 33
[*]G: 34
[*]H: 35
[*]J: 36
[*]K: 37
[*]L: 38
[*]Ö: 39
[*]Ä: 40
[*]*': 43
[*]Z: 44
[*]X: 45
[*]C: 46
[*]V: 47
[*]B: 48
[*]N: 49
[*]M: 50
[*],: 51
[*]. : 52
[*]-: 53
[*]LEFT SHIFT: 42
[*]RIGHT SHIFT: 54
[*]TAB: 15
[*]CAPS: 58
[*]LEFT CTRL: 29
[*]LEFT ALT: 56
[*]RIGHT CTRL: 157
[*]Alt GR: 184
[*]ENTER: 28
[*]BACKSPACE: 14
[*]SPACE: 57
If you want to know more of your scancodes use the code in DBPRO:
REM Project: Scan Code Operator
REM Created: 17/08/2008 2:56:45 p.m.
REM
REM ***** Main Source File *****
REM
Rem this will show the scan code of the keypress you enter.
sync off
backdrop on
do
Key = scancode()
text 10, 10, "ScanCode of pressed key: " + str$(Key)
text 10, 30, "ASCII Code: " + str$(asc(inkey$()))
text 10, 80, "Push anykey to view the scancode"
text 10, 100, "of the key, programmed by Rampage."
text 10, 200, "FPS: " + str$(screen fps())
loop
Rem End of Code
The code for DBPRO is created by Rampage.
Orginal thread can be found
here.
Enjoy!
Regards,
Legend on www.x10community.ath.cx
www.x10community.ath.cx