⌂ YolkfolkThe Dizzy Fansite
Community discussion

Arrow Key Scan codes

Started by delta on 27 October 2010 • 6,088 views

6 posts
#54824
Alex, do you know what the scan codes for the Arrow keys are? I believe they are 48, 4B, 4D and 50, but if I try these they don't work. Also I believe I have to add E0 to the beginning of them, but using 0xE048 doesn't work, and just using E048 throws up an error.

  {yolkfolk}:scratch:
👍 0
#71965
it's okay, I found them in file I9Def in the Engine -> Input folders of the DizzyAGE source code :smile:
👍 0
#72106
yes, they are the key codes used by directx. I think I posted them before, somewhere around here or wrote about this somewhere.

My "job" to mention that using keyboard keys directly instead of the game's standard actions (left,right,up,down,action,menu - which are mapped to both keyboard and joystick) will limit your game to PC platforms with keyboard. An eventual portable console build may not support more than the standard actions.

Alex
👍 0
#72107
[quote data-userid="17" data-postid="72106"]

My “job” to mention that using keyboard keys directly instead of the game’s standard actions (left,right,up,down,action,menu – which are mapped to both keyboard and joystick) will limit your game to PC platforms with keyboard. An eventual portable console build may not support more than the standard actions.

[/quote]

don't worry, actually playing the game only requires the standard actions.

the key codes are used for.... other stuff :wink:
👍 0
#72110
What magical things are you up to now?
👍 0
#72141
[quote data-userid="23" data-postid="72107"]

the key codes are used for…. other stuff :wink:

[/quote]

I see that now :smile:

👍 0