diff options
author | Keith Packard <keithp@keithp.com> | 2002-01-18 16:25:19 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2002-01-18 16:25:19 +0000 |
commit | 3abb3e073961986137f8fec1f194c60636b9e864 (patch) | |
tree | 929f2d44376e1460b08c7893fff373b2858afb6d | |
parent | 88810cfc02941d7e54924e25aa872e5cc740d274 (diff) |
kdrive: fix button emulation for iPAQxf-4_2_1_1xf-4_2_1xf-4_2_0_1xf-4_2_0-bindist-1xf-4_2_0-bindistxf-4_2_0xf-4_2-bp
-rw-r--r-- | hw/kdrive/src/kinput.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index f778298b9..21ac69ca6 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -1085,16 +1085,16 @@ KdCheckSpecialKeys(xEvent *xE) /* * Check for buttons 1, 2 and 3 on the iPAQ */ - if (sym == XK_Pointer_Button1) { - KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_1, 0, 0); + if (sym == XK_Pointer_Button1 && kdMouseInfo) { + KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_1, 0, 0); return; } - if (sym == XK_Pointer_Button2) { - KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_2, 0, 0); + if (sym == XK_Pointer_Button2 && kdMouseInfo) { + KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_2, 0, 0); return; } - if (sym == XK_Pointer_Button3) { - KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_3, 0, 0); + if (sym == XK_Pointer_Button3 && kdMouseInfo) { + KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_3, 0, 0); return; } #endif |