In notepad (or other textboxes) when you hold down a keyboard key, it writes the first letter, waits a little and then without a break its writes same letter. I mean you're holding down a key but after first letter its just waiting a little (only for first letter) and moving on. My english is terrible so hope you understand.

My problem is: im trying to write a game in vb.net (for fun :) ) so player pushing the button (for example up arrow) but like in notepad it waits a little. So car moves a little, waits and you know the rest.

How can i fix this problem? Thanks.

Note: i've checked windows messages and messages coming with that little time space, so it wont work with hook or something (i've tried that also). maybe i should read keyboards raw data? if it's the only way how can i do that in vb .net?

7 Years
Discussion Span
Last Post by __avd
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.