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
a1b08e5d
Commit
a1b08e5d
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 Linux joystick.
parent
de4a9bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
joystick_linux.c
dlls/dinput/joystick_linux.c
+12
-3
No files found.
dlls/dinput/joystick_linux.c
View file @
a1b08e5d
...
...
@@ -99,6 +99,15 @@ struct JoystickImpl
POINTL
povs
[
4
];
};
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_Joystick_GUID
=
{
/* 9e573ed9-7734-11d2-8d4a-23903fb6bdf7 */
0x9e573ed9
,
0x7734
,
...
...
@@ -495,7 +504,7 @@ const struct dinput_device joystick_linux_device = {
*/
static
HRESULT
WINAPI
JoystickLinuxAImpl_Acquire
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
JoystickImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
HRESULT
res
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -524,7 +533,7 @@ static HRESULT WINAPI JoystickLinuxAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
*/
static
HRESULT
WINAPI
JoystickLinuxAImpl_Unacquire
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
JoystickImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
HRESULT
res
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -548,7 +557,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
{
struct
pollfd
plfd
;
struct
js_event
jse
;
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
JoystickImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
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