onKeyDown() delay

Put your problem here if it does not fit any of the other categories.

onKeyDown() delay

Postby rewas » Thu Apr 29, 2010 6:27 am

I am trying to move a box on the screen using onKeyDown(). The problem is that when I press and hold down my move key, I get a delay of about 500ms between the first and the second key-down events. After that, the events come in smooth. I am handling onKeyDown() in the main thread.

What is causing this and how can I solve it?

Thanks!
rewas
Freshman
Freshman
 
Posts: 2
Joined: Tue Apr 20, 2010 7:12 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests