[hatari-devel] New FileSelector
Laurent Sallafranque
laurent.sallafranque at free.fr
Sat Sep 11 19:06:42 CEST 2010
Hello,
For key repeating, it seems to me that I need to use :
if (SDL_PollEvent(&sdlEvent) == 1) /* Wait for events */
instead of
if (SDL_WaitEvent(&sdlEvent) == 1) /* Wait for events */
The first one puts my CPU to 100%, but I can get the state of the UP or
DOWN keys everytime.
Because of the actual WaitEvent, a key that stay down doesn't generate
another event.
I've also tried to add : SDL_EnableKeyRepeat(int delay, int interval),
but it seems not to change anything.
I don't think you would enjoy the SDL_PollEvent method, do you ?
Regards
Laurent
More information about the hatari-devel
mailing list