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
6d9dd6e4
Commit
6d9dd6e4
authored
Oct 21, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Use a global timeout for refreshing joystick devices.
parent
d6facdc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
joystick.c
dlls/winmm/joystick.c
+5
-5
No files found.
dlls/winmm/joystick.c
View file @
6d9dd6e4
...
...
@@ -131,12 +131,12 @@ struct joystick
UINT
timer
;
DWORD
threshold
;
BOOL
changed
;
ULONG
last_check
;
};
static
DIDEVICEINSTANCEW
instances
[
16
];
static
struct
joystick
joysticks
[
16
];
static
IDirectInput8W
*
dinput
;
static
ULONG
last_check
;
static
BOOL
CALLBACK
enum_instances
(
const
DIDEVICEINSTANCEW
*
instance
,
void
*
context
)
{
...
...
@@ -342,9 +342,9 @@ MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetDevCapsW( UINT_PTR id, JOYCAPSW *caps, U
EnterCriticalSection
(
&
joystick_cs
);
if
(
!
(
device
=
joysticks
[
id
].
device
)
&&
(
ticks
-
joysticks
[
id
].
last_check
)
>=
2000
)
if
(
!
(
device
=
joysticks
[
id
].
device
)
&&
(
ticks
-
last_check
)
>=
2000
)
{
joysticks
[
id
].
last_check
=
ticks
;
last_check
=
ticks
;
find_joysticks
();
}
...
...
@@ -477,9 +477,9 @@ MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetPosEx( UINT id, JOYINFOEX *info )
EnterCriticalSection
(
&
joystick_cs
);
if
(
!
(
device
=
joysticks
[
id
].
device
)
&&
(
ticks
-
joysticks
[
id
].
last_check
)
>=
2000
)
if
(
!
(
device
=
joysticks
[
id
].
device
)
&&
(
ticks
-
last_check
)
>=
2000
)
{
joysticks
[
id
].
last_check
=
ticks
;
last_check
=
ticks
;
find_joysticks
();
}
...
...
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