xinput1_3: Added stub code for XInputGetBatteryInformation.

This commit is contained in:
Andrew Fenn 2009-01-08 01:47:44 +07:00 committed by Alexandre Julliard
parent ab0d420dd2
commit 907add75a9
2 changed files with 13 additions and 1 deletions

View File

@ -4,4 +4,4 @@
@ stdcall XInputGetKeystroke(long long ptr)
@ stdcall XInputGetCapabilities(long long ptr)
@ stdcall XInputGetDSoundAudioDeviceGuids(long ptr ptr)
@ stub XInputGetBatteryInformation
@ stdcall XInputGetBatteryInformation(long ptr ptr)

View File

@ -114,3 +114,15 @@ DWORD WINAPI XInputGetDSoundAudioDeviceGuids(DWORD dwUserIndex, GUID* pDSoundRen
}
return ERROR_BAD_ARGUMENTS;
}
DWORD WINAPI XInputGetBatteryInformation(DWORD dwUserIndex, BYTE deviceType, XINPUT_BATTERY_INFORMATION* pBatteryInfo)
{
FIXME("(%d %u %p) Stub!\n", dwUserIndex, deviceType, pBatteryInfo);
if (dwUserIndex < XUSER_MAX_COUNT)
{
return ERROR_DEVICE_NOT_CONNECTED;
/* If controller exists then return ERROR_SUCCESS */
}
return ERROR_BAD_ARGUMENTS;
}