Skip to main content
Gets the kinds of input that the input device supports.

Syntax

Parameters

This method has no parameters.

Return value

Type: GameInputKind A combination of GameInputKind flags that describes every kind of input the device supports. Returns GameInputKindUnknown if the device doesn’t support any known kind of input.

Remarks

The returned flags describe the device as a whole. An individual reading from the device contains only some of these kinds; use IGameInputReading::GetInputKind to find out which kinds of input a specific reading contains. A supported input kind usually means that the corresponding info method on the device returns data. For example, if the returned value includes GameInputKindGamepad, IGameInputDevice::GetGamepadInfo returns true. Similarly, GameInputKindTouch indicates that IGameInputDevice::GetTouchSurfaceCount returns a nonzero value. GameInputKindLighting is an output-only kind. It indicates that the device has lamps that you can control by using IGameInputDevice::SetLightingColor; readings never contain lighting data. The following example checks whether a device can be used as a gamepad.
The set of supported input kinds doesn’t change for the lifetime of the device object. In GameInput v3 and earlier, this information was available from the supportedInput member of the GameInputDeviceInfo structure returned by IGameInputDevice::GetDeviceInfo.

Requirements

Header: GameInput.h Library: gameinput.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

Overview of GameInput
IGameInputDevice
GameInputKind
IGameInputReading::GetInputKind

Version History

Last modified on November 5, 2026