Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Drew DeVault
xserver
Commits
3abb3e07
Commit
3abb3e07
authored
Jan 18, 2002
by
Keith Packard
Browse files
kdrive: fix button emulation for iPAQ
parent
88810cfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/kdrive/src/kinput.c
View file @
3abb3e07
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment