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
62b0e91c
Commit
62b0e91c
authored
May 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add support for X11 mouse buttons 8 and 9.
parent
70949a6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
mouse.c
dlls/winex11.drv/mouse.c
+17
-1
No files found.
dlls/winex11.drv/mouse.c
View file @
62b0e91c
...
...
@@ -57,7 +57,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(cursor);
#define Button7Mask (1<<14)
#endif
#define NB_BUTTONS
7
/* Windows can handle 5 buttons and the wheel too */
#define NB_BUTTONS
9
/* Windows can handle 5 buttons and the wheel too */
static
const
UINT
button_down_flags
[
NB_BUTTONS
]
=
{
...
...
@@ -66,6 +66,8 @@ static const UINT button_down_flags[NB_BUTTONS] =
MOUSEEVENTF_RIGHTDOWN
,
MOUSEEVENTF_WHEEL
,
MOUSEEVENTF_WHEEL
,
MOUSEEVENTF_XDOWN
,
/* FIXME: horizontal wheel */
MOUSEEVENTF_XDOWN
,
MOUSEEVENTF_XDOWN
,
MOUSEEVENTF_XDOWN
};
...
...
@@ -78,6 +80,8 @@ static const UINT button_up_flags[NB_BUTTONS] =
0
,
0
,
MOUSEEVENTF_XUP
,
MOUSEEVENTF_XUP
,
MOUSEEVENTF_XUP
,
MOUSEEVENTF_XUP
};
...
...
@@ -1038,6 +1042,12 @@ void X11DRV_ButtonPress( HWND hwnd, XEvent *xev )
case
6
:
wData
=
XBUTTON2
;
break
;
case
7
:
wData
=
XBUTTON1
;
break
;
case
8
:
wData
=
XBUTTON2
;
break
;
}
update_mouse_state
(
hwnd
,
event
->
window
,
event
->
x
,
event
->
y
,
event
->
state
,
&
pt
);
...
...
@@ -1068,6 +1078,12 @@ void X11DRV_ButtonRelease( HWND hwnd, XEvent *xev )
case
6
:
wData
=
XBUTTON2
;
break
;
case
7
:
wData
=
XBUTTON1
;
break
;
case
8
:
wData
=
XBUTTON2
;
break
;
}
update_mouse_state
(
hwnd
,
event
->
window
,
event
->
x
,
event
->
y
,
event
->
state
,
&
pt
);
...
...
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