Compartir a través de


GameInputTouchShape

Enumerates shapes of a touch sensor.

Syntax

typedef enum GameInputTouchShape  
{  
    GameInputTouchShapeUnknown = -1,  
    GameInputTouchShapePoint = 0,  
    GameInputTouchShape1DLinear = 1,  
    GameInputTouchShape1DRadial = 2,  
    GameInputTouchShape1DIrregular = 3,  
    GameInputTouchShape2DRectangular = 4,  
    GameInputTouchShape2DElliptical = 5,  
    GameInputTouchShape2DIrregular = 6  
} GameInputTouchShape  

Constants

Constant Description
GameInputTouchShapeUnknown Shape of the touch sensor is unknown.
GameInputTouchShapePoint Touch sensor is a single point that can be represented as pressed or not pressed.
GameInputTouchShape1DLinear Touch sensor is one-dimensional and has a linear shape.
GameInputTouchShape1DRadial Touch sensor is one-dimensional and has a radial or curved shape.
GameInputTouchShape1DIrregular Touch sensor is one-dimensional and has an irregular shape.
GameInputTouchShape2DRectangular Touch sensor is two-dimensional and has a rectangular shape.
GameInputTouchShape2DElliptical Touch sensor is two-dimensional and has an elliptical shape.
GameInputTouchShape2DIrregular Touch sensor is two-dimensional and has an irregular shape.

Remarks

This enumeration categorizes touch sensors by number of dimensions and physical shape.

This enumeration is used in the GameInputTouchSensorInfo structure. GameInputTouchSensorInfo is used in the GameInputDeviceInfo structure.

For more information, see GameInput devices.

Requirements

Header: GameInput.h

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

See also

Overview of GameInput
GameInput