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
dc044e15
Commit
dc044e15
authored
Jul 11, 2011
by
Lucas Fialho Zawacki
Committed by
Alexandre Julliard
Jul 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: BuildActionMap and SetActionMap stubs for generic joystick.
parent
f196050f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
12 deletions
+78
-12
joystick.c
dlls/dinput/joystick.c
+60
-0
joystick_linux.c
dlls/dinput/joystick_linux.c
+4
-4
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+4
-4
joystick_osx.c
dlls/dinput/joystick_osx.c
+4
-4
joystick_private.h
dlls/dinput/joystick_private.h
+6
-0
No files found.
dlls/dinput/joystick.c
View file @
dc044e15
...
...
@@ -426,6 +426,66 @@ HRESULT WINAPI JoystickAGenericImpl_GetDeviceState(LPDIRECTINPUTDEVICE8A iface,
return
JoystickWGenericImpl_GetDeviceState
(
IDirectInputDevice8W_from_impl
(
This
),
len
,
ptr
);
}
HRESULT
WINAPI
JoystickWGenericImpl_BuildActionMap
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIACTIONFORMATW
lpdiaf
,
LPCWSTR
lpszUserName
,
DWORD
dwFlags
)
{
FIXME
(
"(%p)->(%p,%s,%08x): semi-stub !
\n
"
,
iface
,
lpdiaf
,
debugstr_w
(
lpszUserName
),
dwFlags
);
return
DI_NOEFFECT
;
}
HRESULT
WINAPI
JoystickAGenericImpl_BuildActionMap
(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIACTIONFORMATA
lpdiaf
,
LPCSTR
lpszUserName
,
DWORD
dwFlags
)
{
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
);
DIACTIONFORMATW
diafW
;
HRESULT
hr
;
diafW
.
rgoAction
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
DIACTIONW
)
*
lpdiaf
->
dwNumActions
);
_copy_diactionformatAtoW
(
&
diafW
,
lpdiaf
);
hr
=
JoystickWGenericImpl_BuildActionMap
(
&
This
->
base
.
IDirectInputDevice8W_iface
,
&
diafW
,
NULL
,
dwFlags
);
_copy_diactionformatWtoA
(
lpdiaf
,
&
diafW
);
HeapFree
(
GetProcessHeap
(),
0
,
diafW
.
rgoAction
);
return
hr
;
}
HRESULT
WINAPI
JoystickWGenericImpl_SetActionMap
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIACTIONFORMATW
lpdiaf
,
LPCWSTR
lpszUserName
,
DWORD
dwFlags
)
{
FIXME
(
"(%p)->(%p,%s,%08x): semi-stub !
\n
"
,
iface
,
lpdiaf
,
debugstr_w
(
lpszUserName
),
dwFlags
);
return
DI_NOEFFECT
;
}
HRESULT
WINAPI
JoystickAGenericImpl_SetActionMap
(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIACTIONFORMATA
lpdiaf
,
LPCSTR
lpszUserName
,
DWORD
dwFlags
)
{
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
);
DIACTIONFORMATW
diafW
;
HRESULT
hr
;
diafW
.
rgoAction
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
DIACTIONW
)
*
lpdiaf
->
dwNumActions
);
_copy_diactionformatAtoW
(
&
diafW
,
lpdiaf
);
hr
=
JoystickWGenericImpl_SetActionMap
(
&
This
->
base
.
IDirectInputDevice8W_iface
,
&
diafW
,
NULL
,
dwFlags
);
HeapFree
(
GetProcessHeap
(),
0
,
diafW
.
rgoAction
);
return
hr
;
}
/*
* This maps the read value (from the input event) to a value in the
* 'wanted' range.
...
...
dlls/dinput/joystick_linux.c
View file @
dc044e15
...
...
@@ -682,8 +682,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
IDirectInputDevice2AImpl_SendDeviceData
,
IDirectInputDevice7AImpl_EnumEffectsInFile
,
IDirectInputDevice7AImpl_WriteEffectToFile
,
IDirectInputDevice8A
Impl_BuildActionMap
,
IDirectInputDevice8A
Impl_SetActionMap
,
JoystickAGeneric
Impl_BuildActionMap
,
JoystickAGeneric
Impl_SetActionMap
,
IDirectInputDevice8AImpl_GetImageInfo
};
...
...
@@ -718,8 +718,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
IDirectInputDevice2WImpl_SendDeviceData
,
IDirectInputDevice7WImpl_EnumEffectsInFile
,
IDirectInputDevice7WImpl_WriteEffectToFile
,
IDirectInputDevice8W
Impl_BuildActionMap
,
IDirectInputDevice8W
Impl_SetActionMap
,
JoystickWGeneric
Impl_BuildActionMap
,
JoystickWGeneric
Impl_SetActionMap
,
IDirectInputDevice8WImpl_GetImageInfo
};
...
...
dlls/dinput/joystick_linuxinput.c
View file @
dc044e15
...
...
@@ -1417,8 +1417,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
IDirectInputDevice2AImpl_SendDeviceData
,
IDirectInputDevice7AImpl_EnumEffectsInFile
,
IDirectInputDevice7AImpl_WriteEffectToFile
,
IDirectInputDevice8A
Impl_BuildActionMap
,
IDirectInputDevice8A
Impl_SetActionMap
,
JoystickAGeneric
Impl_BuildActionMap
,
JoystickAGeneric
Impl_SetActionMap
,
IDirectInputDevice8AImpl_GetImageInfo
};
...
...
@@ -1453,8 +1453,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
IDirectInputDevice2WImpl_SendDeviceData
,
IDirectInputDevice7WImpl_EnumEffectsInFile
,
IDirectInputDevice7WImpl_WriteEffectToFile
,
IDirectInputDevice8W
Impl_BuildActionMap
,
IDirectInputDevice8W
Impl_SetActionMap
,
JoystickWGeneric
Impl_BuildActionMap
,
JoystickWGeneric
Impl_SetActionMap
,
IDirectInputDevice8WImpl_GetImageInfo
};
...
...
dlls/dinput/joystick_osx.c
View file @
dc044e15
...
...
@@ -972,8 +972,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
IDirectInputDevice2AImpl_SendDeviceData
,
IDirectInputDevice7AImpl_EnumEffectsInFile
,
IDirectInputDevice7AImpl_WriteEffectToFile
,
IDirectInputDevice8A
Impl_BuildActionMap
,
IDirectInputDevice8A
Impl_SetActionMap
,
JoystickAGeneric
Impl_BuildActionMap
,
JoystickAGeneric
Impl_SetActionMap
,
IDirectInputDevice8AImpl_GetImageInfo
};
...
...
@@ -1008,8 +1008,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
IDirectInputDevice2WImpl_SendDeviceData
,
IDirectInputDevice7WImpl_EnumEffectsInFile
,
IDirectInputDevice7WImpl_WriteEffectToFile
,
IDirectInputDevice8W
Impl_BuildActionMap
,
IDirectInputDevice8W
Impl_SetActionMap
,
JoystickWGeneric
Impl_BuildActionMap
,
JoystickWGeneric
Impl_SetActionMap
,
IDirectInputDevice8WImpl_GetImageInfo
};
...
...
dlls/dinput/joystick_private.h
View file @
dc044e15
...
...
@@ -86,4 +86,10 @@ HRESULT WINAPI JoystickWGenericImpl_Poll(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_H
HRESULT
WINAPI
JoystickAGenericImpl_GetDeviceState
(
LPDIRECTINPUTDEVICE8A
iface
,
DWORD
len
,
LPVOID
ptr
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
JoystickWGenericImpl_GetDeviceState
(
LPDIRECTINPUTDEVICE8W
iface
,
DWORD
len
,
LPVOID
ptr
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
JoystickAGenericImpl_BuildActionMap
(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIACTIONFORMATA
lpdiaf
,
LPCSTR
lpszUserName
,
DWORD
dwFlags
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
JoystickWGenericImpl_BuildActionMap
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIACTIONFORMATW
lpdiaf
,
LPCWSTR
lpszUserName
,
DWORD
dwFlags
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
JoystickAGenericImpl_SetActionMap
(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIACTIONFORMATA
lpdiaf
,
LPCSTR
lpszUserName
,
DWORD
dwFlags
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
JoystickWGenericImpl_SetActionMap
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIACTIONFORMATW
lpdiaf
,
LPCWSTR
lpszUserName
,
DWORD
dwFlags
)
DECLSPEC_HIDDEN
;
#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