Aracılığıyla paylaş


PointerPointProperties.MouseWheelDelta Property

Definition

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

public:
 property int MouseWheelDelta { int get(); };
int MouseWheelDelta();
public int MouseWheelDelta { get; }
var int32 = pointerPointProperties.mouseWheelDelta;
Public ReadOnly Property MouseWheelDelta As Integer

Property Value

Int32

int

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.

Applies to

See also