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
59fad291
Commit
59fad291
authored
Oct 20, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Check for mouse warping in the poll callback.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aebd03f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
mouse.c
dlls/dinput/mouse.c
+3
-16
No files found.
dlls/dinput/mouse.c
View file @
59fad291
...
...
@@ -472,27 +472,14 @@ static HRESULT WINAPI SysMouseWImpl_GetDeviceState(LPDIRECTINPUTDEVICE8W iface,
}
LeaveCriticalSection
(
&
This
->
base
.
crit
);
warp_check
(
This
,
FALSE
);
return
DI_OK
;
}
/******************************************************************************
* GetDeviceData : gets buffered input data.
*/
static
HRESULT
WINAPI
SysMouseWImpl_GetDeviceData
(
LPDIRECTINPUTDEVICE8W
iface
,
DWORD
dodsize
,
LPDIDEVICEOBJECTDATA
dod
,
LPDWORD
entries
,
DWORD
flags
)
{
SysMouseImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
HRESULT
res
;
res
=
IDirectInputDevice2WImpl_GetDeviceData
(
iface
,
dodsize
,
dod
,
entries
,
flags
);
if
(
SUCCEEDED
(
res
))
warp_check
(
This
,
FALSE
);
return
res
;
}
static
HRESULT
mouse_internal_poll
(
IDirectInputDevice8W
*
iface
)
{
SysMouseImpl
*
impl
=
impl_from_IDirectInputDevice8W
(
iface
);
check_dinput_events
();
warp_check
(
impl
,
FALSE
);
return
DI_OK
;
}
...
...
@@ -710,7 +697,7 @@ static const IDirectInputDevice8WVtbl SysMouseWvt =
IDirectInputDevice2WImpl_Acquire
,
IDirectInputDevice2WImpl_Unacquire
,
SysMouseWImpl_GetDeviceState
,
SysMouse
WImpl_GetDeviceData
,
IDirectInputDevice2
WImpl_GetDeviceData
,
IDirectInputDevice2WImpl_SetDataFormat
,
IDirectInputDevice2WImpl_SetEventNotification
,
IDirectInputDevice2WImpl_SetCooperativeLevel
,
...
...
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