Expand Minimize

PointerPointProperties.MouseWheelDelta | mouseWheelDelta property

Applies to Windows and Windows Phone

Gets a value (the raw value reported by the device) that indicates the change in wheel button input from the last pointer event.

Syntax


var mouseWheelDelta = pointerPointProperties.mouseWheelDelta;

Property value

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The number of notches or distance thresholds crossed since the last pointer event. The default value is 0.

Remarks

The mouse wheel button has discrete, evenly spaced notches or distance thresholds (also called detents). When you rotate or tilt the wheel, a wheel message is sent as each detent is encountered.

The windows constant, WHEEL_DELTA (defined as a value of 120), describes one detent. Each detent marks the threshold for a single increment of an associated action (for example, scrolling a line or page).

A positive value indicates that the wheel was rotated forward (away from the user) or tilted to the right; a negative value indicates that the wheel was rotated backward (toward the user) or tilted to the left.

Wheel button input is oriented along the vertical axis (rotate forward or backward) or the horizontal axis (tilt left or right). Check IsHorizontalMouseWheel to identify whether the input is along the horizontal axis.

Note  The delta was set to 120 to enable finer-resolution wheels (such as freely-rotating wheels with no notches) that send more messages per rotation, but with smaller values per message.

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
IsHorizontalMouseWheel

 

 

Show:
© 2014 Microsoft