Table of Contents

Class PointerInputDevice.PointerEventProperties

Namespace
OpenQA.Selenium.Interactions
Assembly
WebDriver.dll

A class representing the properties of a pointer event.

public class PointerInputDevice.PointerEventProperties
Inheritance
PointerInputDevice.PointerEventProperties
Inherited Members

Properties

AltitudeAngle

Gets or sets the altitude in radians of the transducer (e.g. pen/stylus)

public double? AltitudeAngle { get; set; }

Property Value

double?

Remarks

Valid values are between 0 and π/2, where 0 is parallel to the surface (X-Y plane), and π/2 is perpendicular to the surface.

AzimuthAngle

Gets or sets the azimuth angle (in radians) of the transducer (e.g. pen/stylus)

public double? AzimuthAngle { get; set; }

Property Value

double?

Remarks

Valid values are between 0 and 2π, where 0 represents a transducer whose cap is pointing in the direction of increasing X values, and the values progressively increase when going clockwise.

Height

Gets or sets the height (magnitude on y-axis) in pixels of the contact geometry of the pointer.

public double? Height { get; set; }

Property Value

double?

Pressure

Gets or sets the normalized pressure of the pointer input.

public double? Pressure { get; set; }

Property Value

double?

Remarks

0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively.

TangentialPressure

Gets or sets the normalized tangential pressure (also known as barrel pressure) of the pointer input.

public double? TangentialPressure { get; set; }

Property Value

double?

Remarks

Valid values are between -1 and 1 with 0 being the neutral position of the control. Some hardware may only support positive values between 0 and 1.

TiltX

Gets or sets the plane angle in degrees between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis..

public int? TiltX { get; set; }

Property Value

int?

Remarks

Valid values are between -90 and 90. A positive value is to the right.

TiltY

Gets or sets the plane angle in degrees between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis..

public int? TiltY { get; set; }

Property Value

int?

Remarks

Valid values are between -90 and 90. A positive value is toward the user.

Twist

Gets or sets the clockwise rotation in degrees of a transducer (e.g. stylus) around its own major axis

public int? Twist { get; set; }

Property Value

int?

Remarks

Valid values are between 0 and 359.

Width

Gets or sets the width (magnitude on x-axis) in pixels of the contact geometry of the pointer.

public double? Width { get; set; }

Property Value

double?

Methods

ToDictionary()

Serializes the properties of this input device as a dictionary.

public Dictionary<string, object> ToDictionary()

Returns

Dictionary<string, object>

The dictionary containing the properties of this device.