MouseState.ScrollWheelValue Property

Gets the cumulative mouse scroll wheel value since the game was started.

Bb198809.note(en-us,XNAGameStudio.41).gifXbox 360 Specific Information
The value of this property is always 0.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public int ScrollWheelValue { get; }

Property Value

The scroll wheel value.

Remarks

Unlike standard Windows and WinForms mouse messages, which report a relative value for the scroll wheel, XNA reports the total scroll wheel value accumulated over the length of a game's execution. To process a wheel movement, you must compare the previous frame's wheel value to the current wheel value.

See Also

Reference

MouseState Structure
MouseState Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone