Expand Minimize

PointerPointProperties.Pressure | pressure property

Applies to Windows and Windows Phone

Gets a value that indicates the force that the pointer device (typically a pen/stylus) exerts on the surface of the digitizer.

Syntax


var pressure = pointerPointProperties.pressure;

Property value

Type: Number [JavaScript] | System.Single [.NET] | float32 [C++]

A value from 0 to 1.0. The default value is 0.5.

Remarks

A device reports pressure information through the Human Interface Device (HID) tip pressure usage. Pressure is set through the value of this usage.

Note  

The core of the Microsoft interactive input device architecture is based on the Universal Serial Bus (USB) standard Device Class Definition for HIDs, which is defined by the USB Implementers Forum, Inc.

The USB HID standard defines the configuration and communication protocols for HIDs, such as keyboards, mouse devices, joysticks, and virtual reality devices, that humans use to enter data directly into a computer. (For detailed information about the USB HID standard, see the USB Implementers Forum website.)

Although the core of the Windows input architecture is based on the USB HID standard, the architecture is not limited to USB devices. The input architecture also supports serial port devices, i8042 port devices, and proprietary input devices.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

PointerPointProperties

 

 

Show:
© 2014 Microsoft