Simplified keyboard repeat
|Reported by:||eriktorbjorn||Owned by:||eriktorbjorn|
Right now, the GUI and some game engines implement keyboard repeat independent of each other. But wouldn't it be both easier and more consistent to let the backend handle this?
The attached patch implements this for the SDL backend (simply a matter of calling SDL_EnableKeyRepeat()), and removes any custom repeat code that I've been able to find.
If it's not desirable to always have keyboard repeating (though I can't currently think of any such case), we could easily make keyboard repeating a property that can be toggled on or off.
Ticket imported from: #1487149. Ticket imported from: patches/637.