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
a2302fbe
Commit
a2302fbe
authored
Aug 16, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't update the mouse button status in update_key_state, leave that
to the input processing.
parent
cc7042f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
mouse.c
dlls/x11drv/mouse.c
+14
-3
No files found.
dlls/x11drv/mouse.c
View file @
a2302fbe
...
...
@@ -89,15 +89,25 @@ static void get_coords( HWND *hwnd, Window window, int x, int y, POINT *pt )
/***********************************************************************
* update_
key
_state
* update_
button
_state
*
* Update the
key
state with what X provides us
* Update the
button
state with what X provides us
*/
static
void
update_
key
_state
(
unsigned
int
state
)
static
void
update_
button
_state
(
unsigned
int
state
)
{
pKeyStateTable
[
VK_LBUTTON
]
=
(
state
&
Button1Mask
?
0x80
:
0
);
pKeyStateTable
[
VK_MBUTTON
]
=
(
state
&
Button2Mask
?
0x80
:
0
);
pKeyStateTable
[
VK_RBUTTON
]
=
(
state
&
Button3Mask
?
0x80
:
0
);
}
/***********************************************************************
* update_key_state
*
* Update the key state with what X provides us
*/
static
void
update_key_state
(
unsigned
int
state
)
{
pKeyStateTable
[
VK_SHIFT
]
=
(
state
&
ShiftMask
?
0x80
:
0
);
pKeyStateTable
[
VK_CONTROL
]
=
(
state
&
ControlMask
?
0x80
:
0
);
}
...
...
@@ -516,6 +526,7 @@ void X11DRV_GetCursorPos(LPPOINT pos)
return
;
update_key_state
(
xstate
);
update_button_state
(
xstate
);
TRACE
(
"pointer at (%d,%d)
\n
"
,
winX
,
winY
);
pos
->
x
=
winX
;
pos
->
y
=
winY
;
...
...
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