It looks like I’ll have to add the autorepeat code back into the X11
version of SDL. X sends both keyup and keydown sequences for an autorepeating
key, and doesn’t give any information on whether those events were caused
by autorepeat. It also doesn’t set autorepeat on a per-window basis.
-Sam Lantinga (slouken at devolution.com)