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

# XInputOnGameInput

> XInputOnGameInput

# XInputOnGameInput

O Microsoft Game Development Kit (GDK) é fornecido com o arquivo de cabeçalho XInputOnGameInput.h, que contém uma implementação da API XInput sobre o GameInput. Recomendamos portar diretamente para o GameInput, especialmente se teclado e mouse ou outros dispositivos de entrada forem desejados. No entanto, o wrapper XInputOnGameInput pode ser usado para ajudar a iniciar um esforço inicial de portabilidade sem exigir nenhuma alteração no código XInput existente.

## Funções

| Função | Descrição |
| - | - |
| [XInputEnable](/pt-BR/reference/input/xinputongameinput/functions/xinputenable) | Referência da API XInputEnable |
| [XInputGetAudioDeviceIds](/pt-BR/reference/input/xinputongameinput/functions/xinputgetaudiodeviceids) | Recupera as IDs dos dispositivos de renderização e captura de áudio do headset conectado ao controle especificado. |
| [XInputGetBatteryInformation](/pt-BR/reference/input/xinputongameinput/functions/xinputgetbatteryinformation) | Recupera o tipo de bateria e o status de carga de um controle sem fio. |
| [XInputGetCapabilities](/pt-BR/reference/input/xinputongameinput/functions/xinputgetcapabilities) | Recupera as funcionalidades e os recursos de um controle conectado. |
| [XInputGetDeviceId](/pt-BR/reference/input/xinputongameinput/functions/xinputgetdeviceid) | Recupera a ID do dispositivo para o controle especificado. |
| [XInputGetKeystroke](/pt-BR/reference/input/xinputongameinput/functions/xinputgetkeystroke) | Referência da API XInputGetKeystroke |
| [XInputGetState](/pt-BR/reference/input/xinputongameinput/functions/xinputgetstate) | Recupera o estado atual do controle especificado. |
| [XInputGetStateWithToken](/pt-BR/reference/input/xinputongameinput/functions/xinputgetstatewithtoken) | Recupera o estado atual do controle especificado e o associa a um token de pipeline de quadros D3DX. |
| [XInputOnGameInputInitialize](/pt-BR/reference/input/xinputongameinput/functions/xinputongameinputinitialize) | Referência da API XInputOnGameInputInitialize |
| [XInputOnGameInputUninitialize](/pt-BR/reference/input/xinputongameinput/functions/xinputongameinputuninitialize) | Referência da API XInputOnGameInputUninitialize |
| [XInputSetState](/pt-BR/reference/input/xinputongameinput/functions/xinputsetstate) | Envia dados de vibração para o controle de dois motores especificado. |
| [XInputSetStateEx](/pt-BR/reference/input/xinputongameinput/functions/xinputsetstateex) | Envia dados de vibração para o controle especificado. Dá suporte à funcionalidade de vibração de quatro motores dos controles mais recentes. |

## Estruturas

| Estrutura | Descrição |
| - | - |
| [XINPUT\_BATTERY\_INFORMATION](/pt-BR/reference/input/xinputongameinput/structs/xinput_battery_information) | Descreve o tipo e o estado de carga de uma bateria. |
| [XINPUT\_CAPABILITIES](/pt-BR/reference/input/xinputongameinput/structs/xinput_capabilities) | Referência da API XINPUT\_CAPABILITIES |
| [XINPUT\_GAMEPAD](/pt-BR/reference/input/xinputongameinput/structs/xinput_gamepad) | Referência da API XINPUT\_GAMEPAD |
| [XINPUT\_KEYSTROKE](/pt-BR/reference/input/xinputongameinput/structs/xinput_keystroke) | Descreve os dados de pressionamento de tecla retornados pela função XInputGetKeystroke. |
| [XINPUT\_STATE](/pt-BR/reference/input/xinputongameinput/structs/xinput_state) | Descreve o estado de um controle. |
| [XINPUT\_VIBRATION](/pt-BR/reference/input/xinputongameinput/structs/xinput_vibration) | Descreve as velocidades dos motores para a funcionalidade de vibração de um controle de dois motores. |
| [XINPUT\_VIBRATION\_EX](/pt-BR/reference/input/xinputongameinput/structs/xinput_vibration_ex) | Descreve as velocidades dos motores para a funcionalidade de vibração de um controle de quatro motores. |

## Documentação conceitual

* [Portabilidade do XInput para o GameInput](/pt-BR/build/core-features/common/input/porting/input-porting-xinput)

## Confira também

[Referência da API de entrada](/pt-BR/reference/input/gc-reference-input-toc)


## Related topics

- [XInputOnGameInput](/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XInputOnGameInputInitialize](/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md)
- [XInputOnGameInputUninitialize](/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
