Struct PointerState
Describes the physical state of a pointer at a specific moment in time, including position, pressure, tilt, and button information.
public readonly struct PointerState
- Inherited Members
Constructors
PointerState(Point, Size, NFloat, NFloat, Vector, NFloat, NFloat, NFloat, PointerType, PointerButton, PointerButtons)
Initializes a new instance of the PointerState struct.
public PointerState(Point position, Size contactSize, NFloat pressure, NFloat tangentialPressure, Vector tilt, NFloat twist, NFloat altitudeAngle, NFloat azimuthAngle, PointerType pointerType, PointerButton button, PointerButtons buttons)
Parameters
position
PointThe global position of the pointer.
contactSize
SizeThe size of the contact area.
pressure
NFloatThe normalized pressure applied.
tangentialPressure
NFloatThe normalized tangential (barrel) pressure applied.
tilt
VectorThe tilt vector of the pointer.
twist
NFloatThe clockwise twist rotation of the pointer.
altitudeAngle
NFloatThe altitude angle relative to the surface.
azimuthAngle
NFloatThe azimuth angle (compass direction).
pointerType
PointerTypeThe type of input device.
button
PointerButtonThe button that triggered the event.
buttons
PointerButtonsThe set of currently pressed buttons.
Fields
AltitudeAngle
Gets the altitude angle of the pointer relative to the surface (0 = horizontal, π/2 = vertical), in radians.
public readonly NFloat AltitudeAngle
Field Value
AzimuthAngle
Gets the azimuth angle (compass direction) of the pointer around the vertical axis, in radians.
public readonly NFloat AzimuthAngle
Field Value
Button
Gets which button was responsible for triggering this pointer state change (left, right, middle, eraser, etc.).
public readonly PointerButton Button
Field Value
Buttons
Gets the set of all currently pressed buttons on the device.
public readonly PointerButtons Buttons
Field Value
ContactSize
Gets the size of the pointer's contact geometry, such as the area covered by a finger or stylus tip.
public readonly Size ContactSize
Field Value
PointerType
Gets the type of device generating the pointer input (mouse, touch, pen, etc.).
public readonly PointerType PointerType
Field Value
Position
Gets the position of the pointer in global (window) coordinates.
public readonly Point Position
Field Value
Pressure
Gets the normalized pressure applied by the pointer (range: 0.0 to 1.0).
public readonly NFloat Pressure
Field Value
TangentialPressure
Gets the normalized tangential (barrel) pressure applied by the pointer (range: -1.0 to 1.0).
public readonly NFloat TangentialPressure
Field Value
Tilt
Gets the tilt of the pointer relative to the X and Y axes (in degrees).
public readonly Vector Tilt
Field Value
Twist
Gets the clockwise twist (rotation) of the pointer around its major axis, in degrees (0.0 to 359.9).
public readonly NFloat Twist