[hatari-devel] Recent SDL GUI key up event patch

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hello all,

I noticed the recent fix for orphaned key up events in SDL GUI. I think this is too complicated and probably unsafe. I suggest calling

	SDL_ResetKeyboard();
	SDL_FlushEvent(SDL_KEYUP);

instead.

This makes sure all keys are released and clears all queued key up events. In case the scancodes for return, space or escape are not mapped to the matching key codes this will still work and it requires less extra code in other places.

Regards,
Andreas


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/