Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b0b0ab9
Commit
1b0b0ab9
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 SendForceFeedbackCommand for OSX joysticks.
parent
5135f80a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
joystick_osx.c
dlls/dinput/joystick_osx.c
+32
-2
No files found.
dlls/dinput/joystick_osx.c
View file @
1b0b0ab9
...
...
@@ -1164,6 +1164,36 @@ static HRESULT WINAPI JoystickAImpl_CreateEffect(IDirectInputDevice8A *iface,
type
,
params
,
out
,
outer
);
}
static
HRESULT
WINAPI
JoystickWImpl_SendForceFeedbackCommand
(
IDirectInputDevice8W
*
iface
,
DWORD
flags
)
{
JoystickImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
HRESULT
hr
;
TRACE
(
"%p 0x%x
\n
"
,
This
,
flags
);
if
(
!
This
->
ff
)
return
DI_NOEFFECT
;
hr
=
osx_to_win32_hresult
(
FFDeviceSendForceFeedbackCommand
(
This
->
ff
,
flags
));
if
(
FAILED
(
hr
)){
WARN
(
"FFDeviceSendForceFeedbackCommand failed: %08x
\n
"
,
hr
);
return
hr
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
JoystickAImpl_SendForceFeedbackCommand
(
IDirectInputDevice8A
*
iface
,
DWORD
flags
)
{
JoystickImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
);
TRACE
(
"%p 0x%x
\n
"
,
This
,
flags
);
return
JoystickWImpl_SendForceFeedbackCommand
(
&
This
->
generic
.
base
.
IDirectInputDevice8W_iface
,
flags
);
}
const
struct
dinput_device
joystick_osx_device
=
{
"Wine OS X joystick driver"
,
joydev_enum_deviceA
,
...
...
@@ -1195,7 +1225,7 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
IDirectInputDevice2AImpl_EnumEffects
,
IDirectInputDevice2AImpl_GetEffectInfo
,
IDirectInputDevice2AImpl_GetForceFeedbackState
,
IDirectInputDevice2
AImpl_SendForceFeedbackCommand
,
Joystick
AImpl_SendForceFeedbackCommand
,
IDirectInputDevice2AImpl_EnumCreatedEffectObjects
,
IDirectInputDevice2AImpl_Escape
,
JoystickAGenericImpl_Poll
,
...
...
@@ -1231,7 +1261,7 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
IDirectInputDevice2WImpl_EnumEffects
,
IDirectInputDevice2WImpl_GetEffectInfo
,
IDirectInputDevice2WImpl_GetForceFeedbackState
,
IDirectInputDevice2
WImpl_SendForceFeedbackCommand
,
Joystick
WImpl_SendForceFeedbackCommand
,
IDirectInputDevice2WImpl_EnumCreatedEffectObjects
,
IDirectInputDevice2WImpl_Escape
,
JoystickWGenericImpl_Poll
,
...
...
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