mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 01:20:05 +01:00
kdrive: fix button emulation for iPAQ
This commit is contained in:
parent
88810cfc02
commit
3abb3e0739
1 changed files with 6 additions and 6 deletions
|
|
@ -1085,16 +1085,16 @@ KdCheckSpecialKeys(xEvent *xE)
|
||||||
/*
|
/*
|
||||||
* Check for buttons 1, 2 and 3 on the iPAQ
|
* Check for buttons 1, 2 and 3 on the iPAQ
|
||||||
*/
|
*/
|
||||||
if (sym == XK_Pointer_Button1) {
|
if (sym == XK_Pointer_Button1 && kdMouseInfo) {
|
||||||
KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_1, 0, 0);
|
KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_1, 0, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sym == XK_Pointer_Button2) {
|
if (sym == XK_Pointer_Button2 && kdMouseInfo) {
|
||||||
KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_2, 0, 0);
|
KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_2, 0, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sym == XK_Pointer_Button3) {
|
if (sym == XK_Pointer_Button3 && kdMouseInfo) {
|
||||||
KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_3, 0, 0);
|
KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_3, 0, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue