Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Newbe question - what is the name of key W, A, S, D
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
isaiahk9




PostPosted: Wed May 07, 2008 12:10 pm   Post subject: Newbe question - what is the name of key W, A, S, D

This is a really newbish question, but I can't find it in the Turing aid section (F10). Anyway, what is the name of teh W, A, S, and D key. Up is like this :
(KEY_UP_ARROW)

What is W, A, S and D's ID for calling?
Sponsor
Sponsor
Sponsor
sponsor
S_Grimm




PostPosted: Wed May 07, 2008 12:28 pm   Post subject: RE:Newbe question - what is the name of key W, A, S, D

var chars : array char of boolean
Input.KeyDown (chars)
if chars ('w') then
put "The W key is pressed"
elsif chars ('a') then
put "The A key is pressed"
end if
Tony




PostPosted: Wed May 07, 2008 12:43 pm   Post subject: RE:Newbe question - what is the name of key W, A, S, D

you'd obviously need to place that into a loop to work...

but A\V is right, alphanumeric keys are referred to by their character values.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
isaiahk9




PostPosted: Wed May 07, 2008 5:07 pm   Post subject: RE:Newbe question - what is the name of key W, A, S, D

thanx
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: