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
This commit is contained in:
parent
a37376f1cd
commit
15e3fbc299
|
@ -38,6 +38,7 @@ DInput dinput;
|
|||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/XKBlib.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue