MouseState.ScrollWheelValue Property
Note
This property is available only when developing for Windows.
Gets the cumulative mouse scroll wheel value since the game was started.
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
Windows XP SP2, Windows Vista