summaryrefslogtreecommitdiff
path: root/plugins/dfinput
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-27 09:17:40 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-27 09:17:40 +0000
commit7ad851238b299d8ee9b247615fc75eb527eb9918 (patch)
tree1ebf33f82bec281eb5c4e8137939b276ea5a4b0a /plugins/dfinput
parent0f3ff4e34bd2e54f5f28ab6a03e0781bd28cc54b (diff)
downloadpcsxr-7ad851238b299d8ee9b247615fc75eb527eb9918.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@33235 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput')
-rw-r--r--plugins/dfinput/xkb.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/dfinput/xkb.c b/plugins/dfinput/xkb.c
index 62f7fc06..4ac6f868 100644
--- a/plugins/dfinput/xkb.c
+++ b/plugins/dfinput/xkb.c
@@ -24,14 +24,14 @@ void InitKeyboard() {
wmprotocols = XInternAtom(g.Disp, "WM_PROTOCOLS", 0);
wmdelwindow = XInternAtom(g.Disp, "WM_DELETE_WINDOW", 0);
- XAutoRepeatOff(g.Disp);
+ XkbSetDetectableAutoRepeat(g.Disp, 1, NULL);
g.PadState[0].KeyStatus = 0xFFFF;
g.PadState[1].KeyStatus = 0xFFFF;
}
void DestroyKeyboard() {
- XAutoRepeatOn(g.Disp);
+ XkbSetDetectableAutoRepeat(g.Disp, 0, NULL);
}
void CheckKeyboard() {
@@ -83,15 +83,6 @@ void CheckKeyboard() {
return;
}
break;
-
- case FocusOut:
- XAutoRepeatOn(g.Disp);
- break;
-
- case FocusIn:
- XAutoRepeatOff(g.Disp);
- break;
}
}
}
-