Gavin
Premium Member
Registered: 3rd Apr 02
Location: West Midlands
User status: Offline
|
i coding with the use of a input system but i need to know wat the ascii code is for the up,down, left and right arrow keys
i know that the code for escape is 27.
can any1 help
cheers
gav 
pew pew pew pewwwww
|
Cybermonkey
Member
Registered: 22nd Sep 02
Location: Sydney, Australia
User status: Offline
|
up = 72
left = 75
down = 80
right = 77
|
Gavin
Premium Member
Registered: 3rd Apr 02
Location: West Midlands
User status: Offline
|
its not doing anything with those code ya gave me cybermonkey.....
i using them in a case statement in opengl (for graphics) using 'c'
i can get the - and + working ok on the keypad but those codes dont work.....anything else???
pew pew pew pewwwww
|
Cybermonkey
Member
Registered: 22nd Sep 02
Location: Sydney, Australia
User status: Offline
|
what keys are you pressing to get ascii binary?
|
Gavin
Premium Member
Registered: 3rd Apr 02
Location: West Midlands
User status: Offline
|
at the moment i can get the:
escape = 27
num pad + = 43
num pad - = 45
those all work but i want to use the arrow keys instead????
[Edited on 01-04-2003 by B19 GAV]
pew pew pew pewwwww
|
Cybermonkey
Member
Registered: 22nd Sep 02
Location: Sydney, Australia
User status: Offline
|
http://www.jimprice.com/jim-asc.htm try here
|
Gavin
Premium Member
Registered: 3rd Apr 02
Location: West Midlands
User status: Offline
|
cheers
pew pew pew pewwwww
|