winmm: Make some joystick functions hookable.
This commit is contained in:
parent
7f675174c8
commit
858bb223b4
|
@ -136,7 +136,7 @@ MMRESULT WINAPI joyConfigChanged(DWORD flags)
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* joyGetNumDevs [WINMM.@]
|
* joyGetNumDevs [WINMM.@]
|
||||||
*/
|
*/
|
||||||
UINT WINAPI joyGetNumDevs(void)
|
UINT WINAPI DECLSPEC_HOTPATCH joyGetNumDevs(void)
|
||||||
{
|
{
|
||||||
UINT ret = 0;
|
UINT ret = 0;
|
||||||
int i;
|
int i;
|
||||||
|
@ -152,7 +152,7 @@ UINT WINAPI joyGetNumDevs(void)
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* joyGetDevCapsW [WINMM.@]
|
* joyGetDevCapsW [WINMM.@]
|
||||||
*/
|
*/
|
||||||
MMRESULT WINAPI joyGetDevCapsW(UINT_PTR wID, LPJOYCAPSW lpCaps, UINT wSize)
|
MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetDevCapsW(UINT_PTR wID, LPJOYCAPSW lpCaps, UINT wSize)
|
||||||
{
|
{
|
||||||
if (wID >= MAXJOYSTICK) return JOYERR_PARMS;
|
if (wID >= MAXJOYSTICK) return JOYERR_PARMS;
|
||||||
if (!JOY_LoadDriver(wID)) return MMSYSERR_NODRIVER;
|
if (!JOY_LoadDriver(wID)) return MMSYSERR_NODRIVER;
|
||||||
|
@ -166,7 +166,7 @@ MMRESULT WINAPI joyGetDevCapsW(UINT_PTR wID, LPJOYCAPSW lpCaps, UINT wSize)
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* joyGetDevCapsA [WINMM.@]
|
* joyGetDevCapsA [WINMM.@]
|
||||||
*/
|
*/
|
||||||
MMRESULT WINAPI joyGetDevCapsA(UINT_PTR wID, LPJOYCAPSA lpCaps, UINT wSize)
|
MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetDevCapsA(UINT_PTR wID, LPJOYCAPSA lpCaps, UINT wSize)
|
||||||
{
|
{
|
||||||
JOYCAPSW jcw;
|
JOYCAPSW jcw;
|
||||||
MMRESULT ret;
|
MMRESULT ret;
|
||||||
|
@ -215,7 +215,7 @@ MMRESULT WINAPI joyGetDevCapsA(UINT_PTR wID, LPJOYCAPSA lpCaps, UINT wSize)
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* joyGetPosEx [WINMM.@]
|
* joyGetPosEx [WINMM.@]
|
||||||
*/
|
*/
|
||||||
MMRESULT WINAPI joyGetPosEx(UINT wID, LPJOYINFOEX lpInfo)
|
MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetPosEx(UINT wID, LPJOYINFOEX lpInfo)
|
||||||
{
|
{
|
||||||
TRACE("(%d, %p);\n", wID, lpInfo);
|
TRACE("(%d, %p);\n", wID, lpInfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue