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
3bc30c37
Commit
3bc30c37
authored
Nov 27, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Draw xinput controller state with gdi32.
parent
3f4a7990
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletion
+21
-1
Makefile.in
dlls/joy.cpl/Makefile.in
+1
-1
joy_private.h
dlls/joy.cpl/joy_private.h
+1
-0
main.c
dlls/joy.cpl/main.c
+19
-0
xinput.c
dlls/joy.cpl/xinput.c
+0
-0
No files found.
dlls/joy.cpl/Makefile.in
View file @
3bc30c37
MODULE
=
joy.cpl
IMPORTS
=
dxguid dinput dinput8 ole32 comctl32 user32 advapi32 xinput
IMPORTS
=
dxguid dinput dinput8 ole32 comctl32 user32
gdi32
advapi32 xinput
EXTRADLLFLAGS
=
-Wb
,--prefer-native
...
...
dlls/joy.cpl/joy_private.h
View file @
3bc30c37
...
...
@@ -29,5 +29,6 @@
#include "resource.h"
extern
INT_PTR
CALLBACK
test_xi_dialog_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
);
extern
LRESULT
CALLBACK
test_xi_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
);
#endif
/* __JOY_PRIVATE_H */
dlls/joy.cpl/main.c
View file @
3bc30c37
...
...
@@ -1015,6 +1015,23 @@ static void display_cpl_sheets( HWND parent, struct JoystickData *data )
OleUninitialize
();
}
static
void
register_window_class
(
void
)
{
WNDCLASSW
xi_class
=
{
.
hInstance
=
hcpl
,
.
lpfnWndProc
=
&
test_xi_window_proc
,
.
lpszClassName
=
L"JoyCplXInput"
,
};
RegisterClassW
(
&
xi_class
);
}
static
void
unregister_window_class
(
void
)
{
UnregisterClassW
(
L"JoyCplXInput"
,
hcpl
);
}
/*********************************************************************
* CPlApplet (joy.cpl.@)
*
...
...
@@ -1041,6 +1058,7 @@ LONG CALLBACK CPlApplet(HWND hwnd, UINT command, LPARAM lParam1, LPARAM lParam2)
{
HRESULT
hr
;
register_window_class
();
device_state_event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
/* Initialize dinput */
...
...
@@ -1082,6 +1100,7 @@ LONG CALLBACK CPlApplet(HWND hwnd, UINT command, LPARAM lParam1, LPARAM lParam2)
IDirectInput8_Release
(
data
.
di
);
CloseHandle
(
device_state_event
);
unregister_window_class
();
break
;
}
...
...
dlls/joy.cpl/xinput.c
View file @
3bc30c37
This diff is collapsed.
Click to expand it.
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