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
aee42377
Commit
aee42377
authored
Apr 19, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Remove redundant stuff.
parent
fc4f1607
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
45 deletions
+7
-45
joystick.c
dlls/dinput/joystick.c
+0
-34
joystick_linux.c
dlls/dinput/joystick_linux.c
+3
-3
joystick_osx.c
dlls/dinput/joystick_osx.c
+4
-4
joystick_private.h
dlls/dinput/joystick_private.h
+0
-4
No files found.
dlls/dinput/joystick.c
View file @
aee42377
...
...
@@ -32,40 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dinput
);
/******************************************************************************
* Acquire : gets exclusive control of the joystick
*/
HRESULT
WINAPI
JoystickAGenericImpl_Acquire
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
base
.
acquired
)
{
WARN
(
"already acquired
\n
"
);
return
S_FALSE
;
}
This
->
base
.
acquired
=
1
;
return
DI_OK
;
}
/******************************************************************************
* Unacquire : frees the joystick
*/
HRESULT
WINAPI
JoystickAGenericImpl_Unacquire
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickGenericImpl
*
This
=
(
JoystickGenericImpl
*
)
iface
;
HRESULT
res
;
TRACE
(
"(%p)
\n
"
,
This
);
if
((
res
=
IDirectInputDevice2AImpl_Unacquire
(
iface
))
!=
DI_OK
)
return
res
;
return
DI_OK
;
}
/******************************************************************************
* SetProperty : change input device properties
*/
HRESULT
WINAPI
JoystickAGenericImpl_SetProperty
(
...
...
dlls/dinput/joystick_linux.c
View file @
aee42377
...
...
@@ -611,7 +611,7 @@ static HRESULT WINAPI JoystickLinuxAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
TRACE
(
"(%p)
\n
"
,
This
);
res
=
JoystickAGeneric
Impl_Acquire
(
iface
);
res
=
IDirectInputDevice2A
Impl_Acquire
(
iface
);
if
(
res
!=
DI_OK
)
return
res
;
...
...
@@ -622,7 +622,7 @@ static HRESULT WINAPI JoystickLinuxAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
This
->
joyfd
=
open
(
This
->
dev
,
O_RDONLY
);
if
(
This
->
joyfd
==-
1
)
{
ERR
(
"open(%s) failed: %s
\n
"
,
This
->
dev
,
strerror
(
errno
));
JoystickAGeneric
Impl_Unacquire
(
iface
);
IDirectInputDevice2A
Impl_Unacquire
(
iface
);
return
DIERR_NOTFOUND
;
}
}
...
...
@@ -640,7 +640,7 @@ static HRESULT WINAPI JoystickLinuxAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
TRACE
(
"(%p)
\n
"
,
This
);
res
=
JoystickAGeneric
Impl_Unacquire
(
iface
);
res
=
IDirectInputDevice2A
Impl_Unacquire
(
iface
);
if
(
res
!=
DI_OK
)
return
res
;
...
...
dlls/dinput/joystick_osx.c
View file @
aee42377
...
...
@@ -865,8 +865,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
IDirectInputDevice2AImpl_EnumObjects
,
JoystickAGenericImpl_GetProperty
,
JoystickAGenericImpl_SetProperty
,
JoystickAGeneric
Impl_Acquire
,
JoystickAGeneric
Impl_Unacquire
,
IDirectInputDevice2A
Impl_Acquire
,
IDirectInputDevice2A
Impl_Unacquire
,
JoystickAGenericImpl_GetDeviceState
,
IDirectInputDevice2AImpl_GetDeviceData
,
IDirectInputDevice2AImpl_SetDataFormat
,
...
...
@@ -907,8 +907,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
IDirectInputDevice2WImpl_EnumObjects
,
XCAST
(
GetProperty
)
JoystickAGenericImpl_GetProperty
,
XCAST
(
SetProperty
)
JoystickAGenericImpl_SetProperty
,
XCAST
(
Acquire
)
JoystickAGeneric
Impl_Acquire
,
XCAST
(
Unacquire
)
JoystickAGeneric
Impl_Unacquire
,
XCAST
(
Acquire
)
IDirectInputDevice2A
Impl_Acquire
,
XCAST
(
Unacquire
)
IDirectInputDevice2A
Impl_Unacquire
,
XCAST
(
GetDeviceState
)
JoystickAGenericImpl_GetDeviceState
,
XCAST
(
GetDeviceData
)
IDirectInputDevice2AImpl_GetDeviceData
,
XCAST
(
SetDataFormat
)
IDirectInputDevice2AImpl_SetDataFormat
,
...
...
dlls/dinput/joystick_private.h
View file @
aee42377
...
...
@@ -79,8 +79,4 @@ HRESULT WINAPI JoystickAGenericImpl_Poll(LPDIRECTINPUTDEVICE8A iface);
HRESULT
WINAPI
JoystickAGenericImpl_GetDeviceState
(
LPDIRECTINPUTDEVICE8A
iface
,
DWORD
len
,
LPVOID
ptr
);
HRESULT
WINAPI
JoystickAGenericImpl_Acquire
(
LPDIRECTINPUTDEVICE8A
iface
);
HRESULT
WINAPI
JoystickAGenericImpl_Unacquire
(
LPDIRECTINPUTDEVICE8A
iface
);
#endif
/* __WINE_DLLS_DINPUT_JOYSTICK_PRIVATE_H */
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