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
51f97bb3
Commit
51f97bb3
authored
May 23, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
May 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Support DIPROP_FFGAIN for OSX joysticks.
parent
0ba2a2f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
joystick_osx.c
dlls/dinput/joystick_osx.c
+16
-0
No files found.
dlls/dinput/joystick_osx.c
View file @
51f97bb3
...
...
@@ -1131,6 +1131,18 @@ static HRESULT osx_set_autocenter(JoystickImpl *This,
return
hr
;
}
static
HRESULT
osx_set_ffgain
(
JoystickImpl
*
This
,
const
DIPROPDWORD
*
header
)
{
UInt32
v
;
HRESULT
hr
;
if
(
!
This
->
ff
)
return
DIERR_UNSUPPORTED
;
v
=
header
->
dwData
;
hr
=
osx_to_win32_hresult
(
FFDeviceSetForceFeedbackProperty
(
This
->
ff
,
FFPROP_FFGAIN
,
&
v
));
TRACE
(
"returning: %08x
\n
"
,
hr
);
return
hr
;
}
static
HRESULT
WINAPI
JoystickWImpl_SetProperty
(
IDirectInputDevice8W
*
iface
,
const
GUID
*
prop
,
const
DIPROPHEADER
*
header
)
{
...
...
@@ -1142,6 +1154,8 @@ static HRESULT WINAPI JoystickWImpl_SetProperty(IDirectInputDevice8W *iface,
{
case
(
DWORD_PTR
)
DIPROP_AUTOCENTER
:
return
osx_set_autocenter
(
This
,
(
const
DIPROPDWORD
*
)
header
);
case
(
DWORD_PTR
)
DIPROP_FFGAIN
:
return
osx_set_ffgain
(
This
,
(
const
DIPROPDWORD
*
)
header
);
}
return
JoystickWGenericImpl_SetProperty
(
iface
,
prop
,
header
);
...
...
@@ -1158,6 +1172,8 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(IDirectInputDevice8A *iface,
{
case
(
DWORD_PTR
)
DIPROP_AUTOCENTER
:
return
osx_set_autocenter
(
This
,
(
const
DIPROPDWORD
*
)
header
);
case
(
DWORD_PTR
)
DIPROP_FFGAIN
:
return
osx_set_ffgain
(
This
,
(
const
DIPROPDWORD
*
)
header
);
}
return
JoystickAGenericImpl_SetProperty
(
iface
,
prop
,
header
);
...
...
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