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
e29678da
Commit
e29678da
authored
Jan 30, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Handle additional mouse event types.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a8a74134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
window.c
dlls/wineandroid.drv/window.c
+7
-1
No files found.
dlls/wineandroid.drv/window.c
View file @
e29678da
...
...
@@ -285,9 +285,12 @@ jboolean motion_event( JNIEnv *env, jobject obj, jint win, jint action, jint x,
if
(
!
(
mask
==
AMOTION_EVENT_ACTION_DOWN
||
mask
==
AMOTION_EVENT_ACTION_UP
||
mask
==
AMOTION_EVENT_ACTION_CANCEL
||
mask
==
AMOTION_EVENT_ACTION_SCROLL
||
mask
==
AMOTION_EVENT_ACTION_MOVE
||
mask
==
AMOTION_EVENT_ACTION_HOVER_MOVE
))
mask
==
AMOTION_EVENT_ACTION_HOVER_MOVE
||
mask
==
AMOTION_EVENT_ACTION_BUTTON_PRESS
||
mask
==
AMOTION_EVENT_ACTION_BUTTON_RELEASE
))
return
JNI_FALSE
;
prev_state
=
InterlockedExchange
(
&
button_state
,
state
);
...
...
@@ -304,6 +307,7 @@ jboolean motion_event( JNIEnv *env, jobject obj, jint win, jint action, jint x,
switch
(
action
&
AMOTION_EVENT_ACTION_MASK
)
{
case
AMOTION_EVENT_ACTION_DOWN
:
case
AMOTION_EVENT_ACTION_BUTTON_PRESS
:
if
((
state
&
~
prev_state
)
&
AMOTION_EVENT_BUTTON_PRIMARY
)
data
.
motion
.
input
.
u
.
mi
.
dwFlags
|=
MOUSEEVENTF_LEFTDOWN
;
if
((
state
&
~
prev_state
)
&
AMOTION_EVENT_BUTTON_SECONDARY
)
...
...
@@ -314,6 +318,8 @@ jboolean motion_event( JNIEnv *env, jobject obj, jint win, jint action, jint x,
data
.
motion
.
input
.
u
.
mi
.
dwFlags
|=
MOUSEEVENTF_LEFTDOWN
;
break
;
case
AMOTION_EVENT_ACTION_UP
:
case
AMOTION_EVENT_ACTION_CANCEL
:
case
AMOTION_EVENT_ACTION_BUTTON_RELEASE
:
if
((
prev_state
&
~
state
)
&
AMOTION_EVENT_BUTTON_PRIMARY
)
data
.
motion
.
input
.
u
.
mi
.
dwFlags
|=
MOUSEEVENTF_LEFTUP
;
if
((
prev_state
&
~
state
)
&
AMOTION_EVENT_BUTTON_SECONDARY
)
...
...
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