diff src/video/x11/SDL_x11keyboard.c @ 2299:a7cbc25071b6

Enabled key board auto repeat in X11_InitKeyboard.c. Had to add a couple of new Xlib symbols.
author Bob Pendleton <bob@pendleton.com>
date Sat, 12 Jan 2008 18:07:06 +0000
parents 41d2599b7117
children fbe8ff44c519
line wrap: on
line diff
--- a/src/video/x11/SDL_x11keyboard.c	Sat Jan 12 16:56:42 2008 +0000
+++ b/src/video/x11/SDL_x11keyboard.c	Sat Jan 12 18:07:06 2008 +0000
@@ -851,6 +851,8 @@
     int code;
     SDLKey sdlkey;
 
+    XAutoRepeatOn(data->display);
+
     /* A random collection of KeySym/SDLKey pairs that should be valid
        in any keyboard layout (if this isn't the case on yours,
        please adjust). Using XKeysymToKeycode on these KeySyms
@@ -904,7 +906,7 @@
                 "The key codes of your X server are unknown to SDL. Keys may not be recognized properly. To help get this fixed, report this to the SDL mailing list <sdl@libsdl.org> or to Christian Walther <cwalther@gmx.ch>.\n");
 #endif
         data->keyCodeToSDLKTable =
-        SDL_malloc(KeyCodeTableSize * sizeof(SDLKey));
+            SDL_malloc(KeyCodeTableSize * sizeof(SDLKey));
         if (data->keyCodeToSDLKTable == NULL) {
             SDL_OutOfMemory();
             return -1;