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
b4b6c3af
Commit
b4b6c3af
authored
Feb 06, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Use the DIJOYSTATE2 user data format to support more buttons.
parent
bb9ee1e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dinput.c
dlls/joy.cpl/dinput.c
+5
-5
No files found.
dlls/joy.cpl/dinput.c
View file @
b4b6c3af
...
@@ -236,7 +236,7 @@ static BOOL CALLBACK enum_devices( const DIDEVICEINSTANCEW *instance, void *cont
...
@@ -236,7 +236,7 @@ static BOOL CALLBACK enum_devices( const DIDEVICEINSTANCEW *instance, void *cont
if
(
!
(
entry
=
calloc
(
1
,
sizeof
(
*
entry
)
)))
return
DIENUM_STOP
;
if
(
!
(
entry
=
calloc
(
1
,
sizeof
(
*
entry
)
)))
return
DIENUM_STOP
;
IDirectInput8_CreateDevice
(
dinput
,
&
instance
->
guidInstance
,
&
entry
->
device
,
NULL
);
IDirectInput8_CreateDevice
(
dinput
,
&
instance
->
guidInstance
,
&
entry
->
device
,
NULL
);
IDirectInputDevice8_SetDataFormat
(
entry
->
device
,
&
c_dfDIJoystick
);
IDirectInputDevice8_SetDataFormat
(
entry
->
device
,
&
c_dfDIJoystick
2
);
IDirectInputDevice8_GetCapabilities
(
entry
->
device
,
&
caps
);
IDirectInputDevice8_GetCapabilities
(
entry
->
device
,
&
caps
);
list_add_tail
(
&
devices
,
&
entry
->
entry
);
list_add_tail
(
&
devices
,
&
entry
->
entry
);
...
@@ -266,7 +266,7 @@ static DWORD WINAPI input_thread( void *param )
...
@@ -266,7 +266,7 @@ static DWORD WINAPI input_thread( void *param )
while
(
WaitForMultipleObjects
(
2
,
events
,
FALSE
,
INFINITE
)
!=
0
)
while
(
WaitForMultipleObjects
(
2
,
events
,
FALSE
,
INFINITE
)
!=
0
)
{
{
IDirectInputEffect
*
effect
;
IDirectInputEffect
*
effect
;
DIJOYSTATE
state
=
{
0
};
DIJOYSTATE
2
state
=
{
0
};
unsigned
int
i
;
unsigned
int
i
;
SendMessageW
(
dialog_hwnd
,
WM_USER
,
0
,
0
);
SendMessageW
(
dialog_hwnd
,
WM_USER
,
0
,
0
);
...
@@ -437,7 +437,7 @@ LRESULT CALLBACK test_di_axes_window_proc( HWND hwnd, UINT msg, WPARAM wparam, L
...
@@ -437,7 +437,7 @@ LRESULT CALLBACK test_di_axes_window_proc( HWND hwnd, UINT msg, WPARAM wparam, L
{
{
DIDEVCAPS
caps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
DIDEVCAPS
caps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
IDirectInputDevice8W
*
device
;
IDirectInputDevice8W
*
device
;
DIJOYSTATE
state
=
{
0
};
DIJOYSTATE
2
state
=
{
0
};
RECT
rect
,
tmp_rect
;
RECT
rect
,
tmp_rect
;
PAINTSTRUCT
paint
;
PAINTSTRUCT
paint
;
HDC
hdc
;
HDC
hdc
;
...
@@ -503,7 +503,7 @@ LRESULT CALLBACK test_di_povs_window_proc( HWND hwnd, UINT msg, WPARAM wparam, L
...
@@ -503,7 +503,7 @@ LRESULT CALLBACK test_di_povs_window_proc( HWND hwnd, UINT msg, WPARAM wparam, L
{
{
DIDEVCAPS
caps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
DIDEVCAPS
caps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
IDirectInputDevice8W
*
device
;
IDirectInputDevice8W
*
device
;
DIJOYSTATE
state
=
{
0
};
DIJOYSTATE
2
state
=
{
0
};
PAINTSTRUCT
paint
;
PAINTSTRUCT
paint
;
RECT
rect
;
RECT
rect
;
HDC
hdc
;
HDC
hdc
;
...
@@ -547,7 +547,7 @@ LRESULT CALLBACK test_di_buttons_window_proc( HWND hwnd, UINT msg, WPARAM wparam
...
@@ -547,7 +547,7 @@ LRESULT CALLBACK test_di_buttons_window_proc( HWND hwnd, UINT msg, WPARAM wparam
DIDEVCAPS
caps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
DIDEVCAPS
caps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
UINT
i
,
j
,
offs
,
size
,
step
,
space
=
2
;
UINT
i
,
j
,
offs
,
size
,
step
,
space
=
2
;
IDirectInputDevice8W
*
device
;
IDirectInputDevice8W
*
device
;
DIJOYSTATE
state
=
{
0
};
DIJOYSTATE
2
state
=
{
0
};
PAINTSTRUCT
paint
;
PAINTSTRUCT
paint
;
RECT
rect
;
RECT
rect
;
HDC
hdc
;
HDC
hdc
;
...
...
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