![]() |
| Photo courtesy : ehow.com |
As the documentation specifies,
ScrollWheelValue : Gets the cumulative mouse scroll wheel value since the game was started.
Unlike Winforms, in XNA ScrollWheelValue reports the total scroll wheel value. To get the wheel movement you must track and compare with the previous ScrollWheelValue.
MouseState mouseState = Mouse.GetState(); float ScrollWheelChange =mouseState.ScrollWheelValue;

No comments:
Post a Comment