New topic: 

Keyboard Polling

<http://forums.realsoftware.com/viewtopic.php?t=46924>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Bodevinaat          Post subject: Keyboard PollingPosted: Tue 
Feb 12, 2013 3:43 pm                         
Joined: Tue Aug 28, 2012 3:52 am
Posts: 13                Hi,

I'm currently working on an application that polls the keyboard, or tries to 
read the keys that are being pressed (i.e. in Safari). Polling is triggered by 
means of a timer. The problem I have is: how to check wether any NEW key is 
pressed? When I poll the keyboard with 200 millisecs, some keys are still 
depressed by the user and are measured twice. If I check if the key currently 
depressed is different form the previous (that works, of course) I miss double 
characters (i.e. "www"). How can I solve this? I tried with several timer 
settings but 200 is too fast, 350 is to slow, it all depends on the user's 
typing speed.... I use the Keyboard.AsyncKeyDown() method.

Thanks

Sander   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to