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

Username:   Password: 
 RegisterRegister   
 input.keydown help plz
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
tudball33




PostPosted: Wed May 21, 2008 3:22 pm   Post subject: input.keydown help plz

how do i make it so that the program doesn't "wait for input", it just continues without waiting when i want to have an input like the "1" or "a" key?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed May 21, 2008 3:25 pm   Post subject: RE:input.keydown help plz

moved from Tutorials (please post in proper forums)

you use Input.KeyDown

which you seem to have mentioned in the title.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sean




PostPosted: Wed May 21, 2008 3:28 pm   Post subject: Re: input.keydown help plz

An example:

Turing:

var key : array char of boolean

loop
     Input.KeyDown (key)

     if key(KEY_UP_ARROW) then
          Draw.FillOval (maxx div 2, maxy div 2, 15, 15, red)
          View.Update
          Cls
      end if
end loop
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  [ 3 Posts ]
Jump to:   


Style:  
Search: