Partager via


IGameInputReading::GetInputKind

Retrieves the type of input associated with a reading.

Syntax

GameInputKind GetInputKind(  
)  

Parameters

Return value

Type: GameInputKind

Returns one of the enumerated types of GameInputKind

Remarks

The returned value describes types of input like mouse, touch, keyboard, gamepad, or some other type of input. The GameInputKind returned is a combination of all of the types of input that can be retrieved from a device reading. This is possible due to the fact that a GameInputKind may have multiple flags set in a single instance. Each flag corresponds to a Get*State method of IGameInputReading which will return meaningful information. Calling one of the Get*State methods when its corresponding GameInputKind flag is not set for the device causes it to fill the output arrays with "at rest" values like false or zero.

Requirements

Header: GameInput.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Input API Overview
IGameInputReading
GameInputKind