PointerInputProperties Class

The properties of the contact of a pointer (https://w3c.github.io/pointerevents/#pointerevent-interface): its geometry, its pressure and the orientation of its transducer.

public sealed class PointerInputProperties : IEquatable<PointerInputProperties>
Implements

Constructors

NameDescription
PointerInputProperties()

PointerInputProperties()

UserInput.cs
public PointerInputProperties()

No documentation is available.

Properties

NameDescription
AltitudeAngleGets the altitude of the transducer, in radians, or null to compute it from the tilt.
AzimuthAngleGets the azimuth of the transducer, in radians, or null to compute it from the tilt.
HeightGets the height, in CSS pixels, of the contact geometry.
PressureGets the normalized pressure, or null for the default one (0.5 while a button is pressed or the pointer is in contact, else 0).
TangentialPressureGets the normalized tangential pressure, between -1 and 1.
TiltXGets the tilt of the transducer along the X axis, in degrees, or null to compute it from the spherical angles.
TiltYGets the tilt of the transducer along the Y axis, in degrees, or null to compute it from the spherical angles.
TwistGets the clockwise rotation of the transducer around its axis, in degrees.
WidthGets the width, in CSS pixels, of the contact geometry.

AltitudeAngle

UserInput.cs

Gets the altitude of the transducer, in radians, or null to compute it from the tilt.

public double? AltitudeAngle { get; init; }

Property value

double?

AzimuthAngle

UserInput.cs

Gets the azimuth of the transducer, in radians, or null to compute it from the tilt.

public double? AzimuthAngle { get; init; }

Property value

double?

Gets the height, in CSS pixels, of the contact geometry.

public double Height { get; init; }

Property value

double

Pressure

UserInput.cs

Gets the normalized pressure, or null for the default one (0.5 while a button is pressed or the pointer is in contact, else 0).

public double? Pressure { get; init; }

Property value

double?

TangentialPressure

UserInput.cs

Gets the normalized tangential pressure, between -1 and 1.

public double TangentialPressure { get; init; }

Property value

double

Gets the tilt of the transducer along the X axis, in degrees, or null to compute it from the spherical angles.

public int? TiltX { get; init; }

Property value

int?

Gets the tilt of the transducer along the Y axis, in degrees, or null to compute it from the spherical angles.

public int? TiltY { get; init; }

Property value

int?

Gets the clockwise rotation of the transducer around its axis, in degrees.

public int Twist { get; init; }

Property value

int

Gets the width, in CSS pixels, of the contact geometry.

public double Width { get; init; }

Property value

double

Methods

NameDescription
Equals(PointerInputProperties?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(PointerInputProperties?)

public bool Equals(PointerInputProperties? other)
Parameters
other PointerInputProperties?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(PointerInputProperties?, PointerInputProperties?)
operator !=(PointerInputProperties?, PointerInputProperties?)

operator ==(PointerInputProperties?, PointerInputProperties?)

public static bool operator ==(PointerInputProperties? left, PointerInputProperties? right)

No documentation is available.

operator !=(PointerInputProperties?, PointerInputProperties?)

public static bool operator !=(PointerInputProperties? left, PointerInputProperties? right)

No documentation is available.