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
10a812fb
Commit
10a812fb
authored
Aug 27, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Implement HID joystick IDirectInputDevice8_GetCapabilities.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
91f4af34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
joystick_hid.c
dlls/dinput/joystick_hid.c
+10
-2
No files found.
dlls/dinput/joystick_hid.c
View file @
10a812fb
...
...
@@ -59,6 +59,7 @@ struct hid_joystick
DIDEVICEINSTANCEW
instance
;
WCHAR
device_path
[
MAX_PATH
];
HIDD_ATTRIBUTES
attrs
;
DIDEVCAPS
dev_caps
;
};
static
inline
struct
hid_joystick
*
impl_from_IDirectInputDevice8W
(
IDirectInputDevice8W
*
iface
)
...
...
@@ -84,11 +85,15 @@ static ULONG WINAPI hid_joystick_Release( IDirectInputDevice8W *iface )
static
HRESULT
WINAPI
hid_joystick_GetCapabilities
(
IDirectInputDevice8W
*
iface
,
DIDEVCAPS
*
caps
)
{
FIXME
(
"iface %p, caps %p stub!
\n
"
,
iface
,
caps
);
struct
hid_joystick
*
impl
=
impl_from_IDirectInputDevice8W
(
iface
);
TRACE
(
"iface %p, caps %p.
\n
"
,
iface
,
caps
);
if
(
!
caps
)
return
E_POINTER
;
return
DIERR_UNSUPPORTED
;
*
caps
=
impl
->
dev_caps
;
return
DI_OK
;
}
static
HRESULT
WINAPI
hid_joystick_GetProperty
(
IDirectInputDevice8W
*
iface
,
const
GUID
*
guid
,
...
...
@@ -404,6 +409,9 @@ static HRESULT hid_joystick_create_device( IDirectInputImpl *dinput, const GUID
impl
->
instance
=
instance
;
impl
->
attrs
=
attrs
;
impl
->
dev_caps
.
dwSize
=
sizeof
(
impl
->
dev_caps
);
impl
->
dev_caps
.
dwFlags
=
DIDC_ATTACHED
|
DIDC_EMULATED
;
impl
->
dev_caps
.
dwDevType
=
instance
.
dwDevType
;
*
out
=
&
impl
->
base
.
IDirectInputDevice8W_iface
;
return
DI_OK
;
...
...
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