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
eb00dd0d
Commit
eb00dd0d
authored
Nov 26, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Always start input threads and remove num_ff member.
parent
8c6e2a2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
23 deletions
+12
-23
main.c
dlls/joy.cpl/main.c
+12
-23
No files found.
dlls/joy.cpl/main.c
View file @
eb00dd0d
...
...
@@ -92,7 +92,6 @@ struct Graphics
struct
JoystickData
{
IDirectInput8W
*
di
;
int
num_ff
;
struct
Graphics
graphics
;
BOOL
stop
;
};
...
...
@@ -270,7 +269,6 @@ static BOOL CALLBACK enum_devices( const DIDEVICEINSTANCEW *instance, void *cont
IDirectInputDevice8_SetDataFormat
(
entry
->
device
,
&
c_dfDIJoystick
);
IDirectInputDevice8_GetCapabilities
(
entry
->
device
,
&
caps
);
if
(
caps
.
dwFlags
&
DIDC_FORCEFEEDBACK
)
data
->
num_ff
++
;
/* Set axis range to ease the GUI visualization */
proprange
.
diph
.
dwSize
=
sizeof
(
DIPROPRANGE
);
...
...
@@ -846,17 +844,13 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
refresh_test_joystick_list
(
hwnd
,
data
);
/* Initialize input thread */
if
(
!
list_empty
(
&
devices
))
{
data
->
stop
=
FALSE
;
data
->
stop
=
FALSE
;
/* Set the first joystick as default */
SendDlgItemMessageW
(
hwnd
,
IDC_TESTSELECTCOMBO
,
CB_SETCURSEL
,
0
,
0
);
test_handle_joychange
(
hwnd
,
data
);
/* Set the first joystick as default */
SendDlgItemMessageW
(
hwnd
,
IDC_TESTSELECTCOMBO
,
CB_SETCURSEL
,
0
,
0
);
test_handle_joychange
(
hwnd
,
data
);
thread
=
CreateThread
(
NULL
,
0
,
input_thread
,
(
void
*
)
data
,
0
,
&
tid
);
}
thread
=
CreateThread
(
NULL
,
0
,
input_thread
,
(
void
*
)
data
,
0
,
&
tid
);
}
break
;
...
...
@@ -1079,20 +1073,15 @@ static INT_PTR CALLBACK ff_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
case
PSN_SETACTIVE
:
refresh_ff_joystick_list
(
hwnd
,
data
);
if
(
data
->
num_ff
>
0
)
{
DWORD
tid
;
data
->
stop
=
FALSE
;
/* Set the first joystick as default */
SendDlgItemMessageW
(
hwnd
,
IDC_FFSELECTCOMBO
,
CB_SETCURSEL
,
0
,
0
);
ff_handle_joychange
(
hwnd
);
data
->
stop
=
FALSE
;
/* Set the first joystick as default */
SendDlgItemMessageW
(
hwnd
,
IDC_FFSELECTCOMBO
,
CB_SETCURSEL
,
0
,
0
);
ff_handle_joychange
(
hwnd
);
SendDlgItemMessageW
(
hwnd
,
IDC_FFEFFECTLIST
,
LB_SETCURSEL
,
0
,
0
);
ff_handle_effectchange
(
hwnd
);
SendDlgItemMessageW
(
hwnd
,
IDC_FFEFFECTLIST
,
LB_SETCURSEL
,
0
,
0
);
ff_handle_effectchange
(
hwnd
);
thread
=
CreateThread
(
NULL
,
0
,
ff_input_thread
,
(
void
*
)
data
,
0
,
&
tid
);
}
thread
=
CreateThread
(
NULL
,
0
,
ff_input_thread
,
(
void
*
)
data
,
0
,
NULL
);
break
;
case
PSN_RESET
:
/* intentional fall-through */
...
...
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