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
399be345
Commit
399be345
authored
Jan 09, 2011
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: COM cleanup - use helper function instead of direct typecast in OS/X joystick.
parent
f09ace0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
joystick_osx.c
dlls/dinput/joystick_osx.c
+10
-1
No files found.
dlls/dinput/joystick_osx.c
View file @
399be345
...
...
@@ -135,6 +135,15 @@ struct JoystickImpl
ObjProps
**
propmap
;
};
static
inline
JoystickImpl
*
impl_from_IDirectInputDevice8A
(
IDirectInputDevice8A
*
iface
)
{
return
(
JoystickImpl
*
)
iface
;
}
static
inline
JoystickImpl
*
impl_from_IDirectInputDevice8W
(
IDirectInputDevice8W
*
iface
)
{
return
(
JoystickImpl
*
)
iface
;
}
static
const
GUID
DInput_Wine_OsX_Joystick_GUID
=
{
/* 59CAD8F6-E617-41E2-8EB7-47B23EEEDC5A */
0x59CAD8F6
,
0xE617
,
0x41E2
,
{
0x8E
,
0xB7
,
0x47
,
0xB2
,
0x3E
,
0xEE
,
0xDC
,
0x5A
}
};
...
...
@@ -519,7 +528,7 @@ static void get_osx_device_elements_props(JoystickImpl *device)
static
void
poll_osx_device_state
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickImpl
*
device
=
(
JoystickImpl
*
)
iface
;
JoystickImpl
*
device
=
impl_from_IDirectInputDevice8A
(
iface
)
;
IOHIDElementRef
tIOHIDTopElementRef
;
IOHIDDeviceRef
tIOHIDDeviceRef
;
CFArrayRef
gElementCFArrayRef
=
device
->
elementCFArrayRef
;
...
...
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