From 15e3fbc2993d945185e1646909ef7f3c1976222c Mon Sep 17 00:00:00 2001 From: mizvekov Date: Thu, 4 Dec 2008 02:53:13 +0000 Subject: [PATCH] Changing PadSimple to use XkbSetDetectableAutoRepeat instead of XAutoRepeatOff This way we don't have to care about turning it back on, and if we crash or get killed everything is still fine (user won't have to turn it manually on) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1388 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp index 156c8e2591..c71c6c91c5 100644 --- a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp +++ b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp @@ -38,6 +38,7 @@ DInput dinput; #include #include #include +#include Display* GXdsp; bool KeyStatus[NUMCONTROLS]; @@ -185,7 +186,8 @@ void PAD_Initialize(SPADInitialize _PADInitialize) #else GXdsp = (Display*)g_PADInitialize.hWnd; #endif - + XkbSetDetectableAutoRepeat(GXdsp, True, NULL); + LoadConfig(); } @@ -411,15 +413,6 @@ void X11_Read(int _numPAD, SPADStatus* _pPADStatus) break; - - case FocusIn: - XAutoRepeatOff(GXdsp); - break; - - case FocusOut: - XAutoRepeatOn(GXdsp); - break; - default: break; }