Computer Science Canada

input.keydown help plz

Author:  tudball33 [ 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?

Author:  Tony [ 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.

Author:  Sean [ 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


: