xinput1_3: Added stub code for XInputGetBatteryInformation.
This commit is contained in:
parent
ab0d420dd2
commit
907add75a9
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue