2
0

keydown.bmx 269 B

12345678910111213
  1. ' keydown.bmx
  2. ' the following code draws a circle if the
  3. ' program detects the spacebar is pressed
  4. ' and exits when it detects the ESCAPE key has
  5. ' been pressed
  6. Graphics 640,480
  7. While Not KeyHit(KEY_ESCAPE)
  8. Cls
  9. If KeyDown(KEY_SPACE) DrawOval 0,0,640,480
  10. Flip
  11. Wend