SDL: Change keyboard repeat to apply on unmapped events

The keyboard repeat event generator is used when building against SDL1.
Previously the repeat events would generate based on the event stream
produced by the keymapper which is not guaranteed to have matching up
and down events in the case the keymaps are changed while a key is
pressed.

Fixes #11417.
This commit is contained in:
Bastien Bouclet 2020-04-12 10:47:47 +02:00
parent 23fc7f52e0
commit 85e3fb38fb
6 changed files with 96 additions and 77 deletions

View file

@ -117,6 +117,7 @@ protected:
* The event source we use for obtaining SDL events.
*/
SdlEventSource *_eventSource;
Common::EventSource *_eventSourceWrapper;
/**
* The SDL output window.