GameInputLocation

Enumerates the parts of an input device.

Syntax

typedef enum GameInputLocation  
{  
    GameInputLocationUnknown = -1,  
    GameInputLocationChassis = 0,  
    GameInputLocationDisplay = 1,  
    GameInputLocationAxis = 2,  
    GameInputLocationButton = 3,  
    GameInputLocationSwitch = 4,  
    GameInputLocationKey = 5,  
    GameInputLocationTouchPad = 6  
} GameInputLocation  

Constants

Constant Description
GameInputLocationUnknown Location description is unknown.
GameInputLocationChassis Device feature is located in the Chassis.
GameInputLocationDisplay Device feature is located in the display.
GameInputLocationAxis Device feature is located in a device Axis.
GameInputLocationButton Device feature is located in an input device button.
GameInputLocationSwitch Device feature is located in a device switch.
GameInputLocationKey Device feature is located in a device key.
GameInputLocationTouchPad Device feature is located in a device touch sensor.

Remarks

This function can be used to indicate the location of some part of the device such as a rumble motor, haptic feedback motor, or touch sensor. Not all devices provide this information natively, so this will often be "unknown" unless additional device-specific data has been added to the registry.
Member of GameInputForceFeedbackMotorInfo.
Member of GameInputHapticFeedbackMotorInfo.
Member of GameInputTouchSensorInfo.

Requirements

Header: GameInput.h

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

See also

Input API Overview
GameInput
GameInputForceFeedbackMotorInfo
GameInputHapticFeedbackMotorInfo
GameInputTouchSensorInfo