Holding down key while fetching mouse input = choppy mouse |
capehill
|
Is there any difference if you handle mouse with SDL_PollEvent?
How many times per second your event loop runs? |
|||||||||||
|
8bitbubsy
|
No difference with SDL_PollEvent, but you got me thinking regarding the input poll rate... It's 60Hz, that might be the problem. The key repeat is so fast that it's blocking a lot of the input. How can I fix this? Maybe have a different thread for input, then buffer it and read the buffer from the main video thread?
|
|||||||||||
|
8bitbubsy
|
Sorry for the double post, but I managed to overcome this issue by polling the mouse in a separate 100Hz timer thread. Works beautifully now. Please let me know if this is not recommended, for whatever reason.
|
|||||||||||
|