Respond to this messageReturn to Index
Original Message
  • INKEY$ is designed for typing
    • (Login Mikrondel)
      Posted Mar 5, 2010 6:10 PM

      When you hold a key down, it takes a while (maybe half a second) before the key starts repeating, and even then the repetitions have some kind of time gap between them. INKEY$ has this behaviour built into it. It's great for typing stuff and moving around menus, where you don't want a key press to register a thousand times just because you held it down for 300 milliseconds.

      But, INKEY$ is no good when you want to check if a certain key is held down at a given moment (which is what you need if you want to detect multiple keys being held down together, or if you want to know exactly when a key is prseed and released).

      In that case, you'll need to go into more advanced areas. See , the first reply by Mac has a good assembly-language routine that does the job. It's not easy to use, but it doesn't ever miss keys.
    Your Name
    Your Email
    Message Title
    Message Text
    Options Also send responses to my email address

     Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement