> ## 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

Microsoft Game Development Kit (GDK) incluye el archivo de encabezado XInputOnGameInput.h, que contiene una implementación de la API de XInput sobre GameInput. Se recomienda portar directamente a GameInput, especialmente si se desea usar un teclado y un mouse u otros dispositivos de entrada. Sin embargo, el contenedor XInputOnGameInput se puede usar para ayudar a arrancar un esfuerzo de portabilidad inicial sin necesidad de realizar cambios en el código XInput existente.

## Funciones

| Función                                                                                                     | Descripción                                                                                                                                |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [XInputEnable](/reference/input/xinputongameinput/functions/xinputenable)                                   | Referencia de la API XInputEnable                                                                                                          |
| [XInputGetAudioDeviceIds](/reference/input/xinputongameinput/functions/xinputgetaudiodeviceids)             | Recupera los identificadores de los dispositivos de representación y captura de audio de los auriculares conectados al mando especificado. |
| [XInputGetBatteryInformation](/reference/input/xinputongameinput/functions/xinputgetbatteryinformation)     | Recupera el tipo de batería y el estado de carga de un mando inalámbrico.                                                                  |
| [XInputGetCapabilities](/reference/input/xinputongameinput/functions/xinputgetcapabilities)                 | Recupera las funcionalidades y características de un mando conectado.                                                                      |
| [XInputGetDeviceId](/reference/input/xinputongameinput/functions/xinputgetdeviceid)                         | Recupera el identificador de dispositivo del mando especificado.                                                                           |
| [XInputGetKeystroke](/reference/input/xinputongameinput/functions/xinputgetkeystroke)                       | Referencia de la API XInputGetKeystroke                                                                                                    |
| [XInputGetState](/reference/input/xinputongameinput/functions/xinputgetstate)                               | Recupera el estado actual del mando especificado.                                                                                          |
| [XInputGetStateWithToken](/reference/input/xinputongameinput/functions/xinputgetstatewithtoken)             | Recupera el estado actual del mando especificado y lo asocia con un token de canalización de fotogramas D3DX.                              |
| [XInputOnGameInputInitialize](/reference/input/xinputongameinput/functions/xinputongameinputinitialize)     | Referencia de la API XInputOnGameInputInitialize                                                                                           |
| [XInputOnGameInputUninitialize](/reference/input/xinputongameinput/functions/xinputongameinputuninitialize) | Referencia de la API XInputOnGameInputUninitialize                                                                                         |
| [XInputSetState](/reference/input/xinputongameinput/functions/xinputsetstate)                               | Envía datos de vibración al mando de dos motores especificado.                                                                             |
| [XInputSetStateEx](/reference/input/xinputongameinput/functions/xinputsetstateex)                           | Envía datos de vibración al mando especificado. Admite la funcionalidad de vibración de cuatro motores de los mandos más recientes.        |

## Estructuras

| Estructura                                                                                            | Descripción                                                                                               |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [XINPUT\_BATTERY\_INFORMATION](/reference/input/xinputongameinput/structs/xinput_battery_information) | Describe el tipo y el estado de carga de una batería.                                                     |
| [XINPUT\_CAPABILITIES](/reference/input/xinputongameinput/structs/xinput_capabilities)                | Referencia de la API XINPUT\_CAPABILITIES                                                                 |
| [XINPUT\_GAMEPAD](/reference/input/xinputongameinput/structs/xinput_gamepad)                          | Referencia de la API XINPUT\_GAMEPAD                                                                      |
| [XINPUT\_KEYSTROKE](/reference/input/xinputongameinput/structs/xinput_keystroke)                      | Describe los datos de pulsación de tecla devueltos por la función XInputGetKeystroke.                     |
| [XINPUT\_STATE](/reference/input/xinputongameinput/structs/xinput_state)                              | Describe el estado de un mando.                                                                           |
| [XINPUT\_VIBRATION](/reference/input/xinputongameinput/structs/xinput_vibration)                      | Describe las velocidades de los motores para la funcionalidad de vibración de un mando de dos motores.    |
| [XINPUT\_VIBRATION\_EX](/reference/input/xinputongameinput/structs/xinput_vibration_ex)               | Describe las velocidades de los motores para la funcionalidad de vibración de un mando de cuatro motores. |

## Documentación conceptual

* [Portabilidad de XInput a GameInput](/build/core-features/common/input/porting/input-porting-xinput)

## Consulte también

[Referencia de la API de entrada](/reference/input/gc-reference-input-toc)


## Related topics

- [XInputOnGameInputInitialize](/es/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md)
- [XInputOnGameInputUninitialize](/es/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [Portabilidad de XInput a GameInput](/es/build/core-features/common/input/porting/input-porting-xinput.md)
- [XInputEnable](/es/reference/input/xinputongameinput/functions/xinputenable.md)
- [XInputGetKeystroke](/es/reference/input/xinputongameinput/functions/xinputgetkeystroke.md)
