summaryrefslogtreecommitdiff
path: root/plugins/dfinput/xkb.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-05-17 19:18:09 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-05-17 19:18:09 +0000
commit187b28524af9ac656ba4576693480f97c723763b (patch)
tree0246e1026f526bfdae0a5db35017372043ebfe72 /plugins/dfinput/xkb.c
parent2b6262cbe6715c2402c98da47c1b748755b35a3e (diff)
downloadpcsxr-187b28524af9ac656ba4576693480f97c723763b.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@66880 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput/xkb.c')
-rw-r--r--plugins/dfinput/xkb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/dfinput/xkb.c b/plugins/dfinput/xkb.c
index 6a7a21bd..7e2601ae 100644
--- a/plugins/dfinput/xkb.c
+++ b/plugins/dfinput/xkb.c
@@ -17,6 +17,7 @@
*/
#include "pad.h"
+#include "util.h"
static Atom wmprotocols, wmdelwindow;
static int g_currentMouse_X;
@@ -33,7 +34,8 @@ void InitKeyboard() {
g.cfg.PadDef[1].Type == PSE_PAD_TYPE_MOUSE) {
int revert_to;
XGetInputFocus(g.Disp, &window, &revert_to);
- XGrabPointer(g.Disp, window, True, ButtonPressMask, GrabModeAsync, GrabModeAsync, window, None, CurrentTime);
+ grabCursor(g.Disp, window, 1);
+ showCursor(g.Disp, window, 0);
}
g_currentMouse_X = 0;
@@ -48,7 +50,8 @@ void DestroyKeyboard() {
if (g.cfg.PadDef[0].Type == PSE_PAD_TYPE_MOUSE ||
g.cfg.PadDef[1].Type == PSE_PAD_TYPE_MOUSE) {
- XUngrabPointer(g.Disp, CurrentTime);
+ grabCursor(g.Disp, window, 0);
+ showCursor(g.Disp, window, 1);
}
}