Detecting key held down for a long time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haha01haha01
    New Member
    • Dec 2009
    • 2

    Detecting key held down for a long time

    Hi,
    I am creating a certain graphical tool and would like to implement a system that can detect and react to keys being held down for more than just a key press (sort of like how in Explorer, for example, when you select a file and press one of the arrows it moves your selection once, and then after the key is held for a second it starts moving fast).
    What would be an efficient way to do such a thing while having the rest of the application run normally?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    I'm pretty sure that's just the key repeat delay and speed.

    Check your Keyboard control panel.

    Comment

    • haha01haha01
      New Member
      • Dec 2009
      • 2

      #3
      Oh. I see. Wow, that was simpler than I thought. Although I think that when you call an event handler "KeyPress", you are expecting it to be called only when the key is pressed. Lol.

      Comment

      Working...