Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cd550bf6
Commit
cd550bf6
authored
May 07, 2008
by
John Klehm
Committed by
Alexandre Julliard
May 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Move hardware tablet proximity into x11 layer.
parent
df2120e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
wintab.c
dlls/winex11.drv/wintab.c
+14
-2
wintab32.c
dlls/wintab32/wintab32.c
+2
-6
No files found.
dlls/winex11.drv/wintab.c
View file @
cd550bf6
...
...
@@ -879,12 +879,15 @@ static void proximity_event( HWND hwnd, XEvent *event )
XProximityNotifyEvent
*
proximity
=
(
XProximityNotifyEvent
*
)
event
;
LPWTI_CURSORS_INFO
cursor
;
int
curnum
=
cursor_from_device
(
proximity
->
deviceid
,
&
cursor
);
LPARAM
proximity_info
;
TRACE
(
"hwnd=%p
\n
"
,
hwnd
);
if
(
curnum
<
0
)
return
;
memset
(
&
gMsgPacket
,
0
,
sizeof
(
WTPACKET
));
TRACE
(
"Received tablet proximity event
\n
"
);
/* Set cursor to inverted if cursor is the eraser */
gMsgPacket
.
pkStatus
=
(
cursor
->
TYPE
==
CSR_TYPE_ERASER
?
TPS_INVERT
:
0
);
gMsgPacket
.
pkStatus
|=
(
event
->
type
==
proximity_out_type
)
?
TPS_PROXIMITY
:
0
;
...
...
@@ -900,7 +903,16 @@ static void proximity_event( HWND hwnd, XEvent *event )
gMsgPacket
.
pkNormalPressure
=
proximity
->
axis_data
[
2
];
gMsgPacket
.
pkButtons
=
get_button_state
(
curnum
);
SendMessageW
(
hwndTabletDefault
,
WT_PROXIMITY
,
(
event
->
type
==
proximity_in_type
),
(
LPARAM
)
hwnd
);
/* FIXME: LPARAM loword is true when cursor entering context, false when leaving context
* This needs to be handled here or in wintab32. Using the proximity_in_type is not correct
* but kept for now.
* LPARAM hiword is "non-zero when the cursor is leaving or entering hardware proximity"
* WPARAM contains context handle.
* HWND to HCTX is handled by wintab32.
*/
proximity_info
=
MAKELPARAM
((
event
->
type
==
proximity_in_type
),
(
event
->
type
==
proximity_in_type
)
||
(
event
->
type
==
proximity_out_type
));
SendMessageW
(
hwndTabletDefault
,
WT_PROXIMITY
,
(
WPARAM
)
hwnd
,
proximity_info
);
}
/***********************************************************************
...
...
dlls/wintab32/wintab32.c
View file @
cd550bf6
...
...
@@ -136,15 +136,11 @@ static LRESULT WINAPI TABLET_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
{
WTPACKET
packet
;
LPOPENCONTEXT
handler
;
LPARAM
prox
;
pGetCurrentPacket
(
&
packet
);
handler
=
AddPacketToContextQueue
(
&
packet
,(
HWND
)
l
Param
);
handler
=
AddPacketToContextQueue
(
&
packet
,(
HWND
)
w
Param
);
if
(
handler
)
{
prox
=
MAKELPARAM
(
wParam
,
1
);
TABLET_PostTabletMessage
(
handler
,
WT_PROXIMITY
,
(
WPARAM
)
handler
->
handle
,
prox
,
TRUE
);
}
(
WPARAM
)
handler
->
handle
,
lParam
,
TRUE
);
break
;
}
}
...
...
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