Computer Science Canada

controls question

Author:  Pear-i [ Tue Mar 25, 2003 2:42 pm ]
Post subject:  controls question

this is probably a simple question,
but I was just wondering how would i switch the controls for my program to
use the up down left right buttons rather than letters / numbers?

thanks

Author:  Tony [ Tue Mar 25, 2003 3:31 pm ]
Post subject: 

http://www.compsci.ca/bbs/viewtopic.php?t=114

or if using compiler under v4.x, you can use ASCII values instead

code:

var c:string(1)
getch(c)
put "ASCII of ", c," is ", ord(c)


this prog will tell you ASCII values of any key pressed

Author:  Pear-i [ Tue Mar 25, 2003 4:19 pm ]
Post subject:  thanks!

thanks Tony *smiles* you've been most helpful ^_^

hehehe I should've known how to do that :p


: