Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
041e9783
Commit
041e9783
authored
Jan 24, 2005
by
Robert North
Committed by
Alexandre Julliard
Jan 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Packets from eraser cursors are marked as inverted, matching behavior
on Windows Wacom tablets.
parent
68eb3843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
wintab.c
dlls/x11drv/wintab.c
+10
-1
No files found.
dlls/x11drv/wintab.c
View file @
041e9783
...
...
@@ -595,9 +595,12 @@ int X11DRV_ProcessTabletEvent(HWND hwnd, XEvent *event)
if
(
event
->
type
==
motion_type
)
{
XDeviceMotionEvent
*
motion
=
(
XDeviceMotionEvent
*
)
event
;
LPWTI_CURSORS_INFO
cursor
=
&
gSysCursor
[
motion
->
deviceid
];
TRACE_
(
event
)(
"Received tablet motion event (%p)
\n
"
,
hwnd
);
TRACE
(
"Received tablet motion event (%p)
\n
"
,
hwnd
);
/* Set cursor to inverted if cursor is the eraser */
gMsgPacket
.
pkStatus
=
(
cursor
->
TYPE
==
0xc85a
?
TPS_INVERT
:
0
);
gMsgPacket
.
pkTime
=
EVENT_x11_time_to_win32_time
(
motion
->
time
);
gMsgPacket
.
pkSerialNumber
=
gSerial
++
;
gMsgPacket
.
pkCursor
=
motion
->
deviceid
;
...
...
@@ -615,11 +618,14 @@ int X11DRV_ProcessTabletEvent(HWND hwnd, XEvent *event)
button_release_type
))
{
XDeviceButtonEvent
*
button
=
(
XDeviceButtonEvent
*
)
event
;
LPWTI_CURSORS_INFO
cursor
=
&
gSysCursor
[
button
->
deviceid
];
TRACE_
(
event
)(
"Received tablet button event
\n
"
);
TRACE
(
"Received tablet button %s event
\n
"
,
(
event
->
type
==
button_press_type
)
?
"press"
:
"release"
);
/* Set cursor to inverted if cursor is the eraser */
gMsgPacket
.
pkStatus
=
(
cursor
->
TYPE
==
0xc85a
?
TPS_INVERT
:
0
);
set_button_state
(
button
->
deviceid
);
gMsgPacket
.
pkTime
=
button
->
time
;
gMsgPacket
.
pkSerialNumber
=
gSerial
++
;
...
...
@@ -648,10 +654,13 @@ int X11DRV_ProcessTabletEvent(HWND hwnd, XEvent *event)
(
event
->
type
==
proximity_out_type
))
{
XProximityNotifyEvent
*
proximity
=
(
XProximityNotifyEvent
*
)
event
;
LPWTI_CURSORS_INFO
cursor
=
&
gSysCursor
[
proximity
->
deviceid
];
TRACE_
(
event
)(
"Received tablet proximity event
\n
"
);
TRACE
(
"Received tablet proximity event
\n
"
);
gMsgPacket
.
pkStatus
=
(
event
->
type
==
proximity_out_type
)
?
TPS_PROXIMITY
:
0
;
/* Set cursor to inverted if cursor is the eraser */
gMsgPacket
.
pkStatus
=
(
cursor
->
TYPE
==
0xc85a
?
TPS_INVERT
:
0
);
gMsgPacket
.
pkStatus
|=
(
event
->
type
==
proximity_out_type
)
?
TPS_PROXIMITY
:
0
;
gMsgPacket
.
pkTime
=
proximity
->
time
;
gMsgPacket
.
pkSerialNumber
=
gSerial
++
;
gMsgPacket
.
pkCursor
=
proximity
->
deviceid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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