From 7ad851238b299d8ee9b247615fc75eb527eb9918 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Tue, 27 Oct 2009 09:17:40 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@33235 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfinput/xkb.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/dfinput') 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; } } } - -- cgit v1.2.3