> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputDevice::GetBatteryState (Deprecated)

> IGameInputDevice::GetBatteryState

> [!WARNING]
>
> **Deprecated.** This method was removed in GameInput v1 and is not available in the current API.

Gets the current battery state of the device.

## Syntax

```cpp theme={null}
HRESULT GetBatteryState(
    GameInputBatteryState* state
);
```

### Parameters

*state*   \_Out\_\
Type: [GameInputBatteryState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md)\*

A pointer to a [GameInputBatteryState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md) structure to fill with the current battery state.

### Return value

Type: HRESULT

Returns E\_NOTIMPL, as this method was never implemented in v0.

## Remarks

This method was removed in v1. Battery state information was provided via the [GameInputBatteryState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md) structure, which was also removed. No direct battery state query exists in the current API.

## Version History

| Version | Changes |
| - | - |
| **v1** | Removed. |
| **v0** | Introduced. |

## See also

[Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[GameInputBatteryState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md)\
[IGameInputDevice](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)


## Related topics

- [GameInputBatteryState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md)
- [IGameInputDevice::SetInputSynchronizationState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setinputsynchronizationstate.md)
- [IGameInputDevice::SetHapticMotorState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [IGameInputDevice::SendInputSynchronizationHint (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sendinputsynchronizationhint.md)
- [IGameInputDevice::GetRawDeviceFeature (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
