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
de4a9bb3
Commit
de4a9bb3
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 base joystick class.
parent
31c828ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
joystick.c
dlls/dinput/joystick.c
+16
-7
No files found.
dlls/dinput/joystick.c
View file @
de4a9bb3
...
...
@@ -32,6 +32,15 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dinput
);
static
inline
JoystickGenericImpl
*
impl_from_IDirectInputDevice8A
(
IDirectInputDevice8A
*
iface
)
{
return
(
JoystickGenericImpl
*
)
iface
;
}
static
inline
JoystickGenericImpl
*
impl_from_IDirectInputDevice8W
(
IDirectInputDevice8W
*
iface
)
{
return
(
JoystickGenericImpl
*
)
iface
;
}
/******************************************************************************
* SetProperty : change input device properties
*/
...
...
@@ -40,7 +49,7 @@ HRESULT WINAPI JoystickAGenericImpl_SetProperty(
REFGUID
rguid
,
LPCDIPROPHEADER
ph
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
DWORD
i
;
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
ph
);
...
...
@@ -144,7 +153,7 @@ HRESULT WINAPI JoystickAGenericImpl_GetCapabilities(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIDEVCAPS
lpDIDevCaps
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
int
size
;
TRACE
(
"%p->(%p)
\n
"
,
iface
,
lpDIDevCaps
);
...
...
@@ -223,7 +232,7 @@ HRESULT WINAPI JoystickAGenericImpl_GetProperty(
REFGUID
rguid
,
LPDIPROPHEADER
pdiph
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
TRACE
(
"(%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
...
...
@@ -283,7 +292,7 @@ HRESULT WINAPI JoystickAGenericImpl_GetDeviceInfo(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIDEVICEINSTANCEA
pdidi
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pdidi
);
...
...
@@ -321,7 +330,7 @@ HRESULT WINAPI JoystickWGenericImpl_GetDeviceInfo(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIDEVICEINSTANCEW
pdidi
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
)
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pdidi
);
...
...
@@ -349,7 +358,7 @@ HRESULT WINAPI JoystickWGenericImpl_GetDeviceInfo(
HRESULT
WINAPI
JoystickAGenericImpl_Poll
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -371,7 +380,7 @@ HRESULT WINAPI JoystickAGenericImpl_GetDeviceState(
DWORD
len
,
LPVOID
ptr
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
)
;
TRACE
(
"(%p,0x%08x,%p)
\n
"
,
This
,
len
,
ptr
);
...
...
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