Get keypress without locking/last key pressed?

  • Follow


My objective is to run a function, and them comeback to main cycle to check if any key has been pressed in the meantime.
The function will take a few ms at most, but the key press is simulated (via bluetooth device), so i think it wont be the same as a human keypress (where the key stays down at least a few hundredths of a second), meaning i believe key press could occur only during the function.
If no key was pressed during that interval, function would be run again.

I´ve tried looking around, and found similar things in the file exchange(like getkey, that can read the bluetooth keypress) but locks until a key is pressed.

Any suggestions? 
Thank You
0
Reply Ironic 5/9/2010 11:39:04 PM


0 Replies
554 Views

(page loaded in 0.04 seconds)

Similiar Articles:













7/23/2012 8:39:16 PM


Reply: