You can get the current mouse scroll wheel value by calling the <tt>GetMouseScrollValue()</tt> method. Note that this is the ''absolute'' scroll value; it's only meaningful when comparing to a previous scroll value. For example:
−
−
<source lang="c#">
−
// detect when the player scrolls the mouse wheel.
−
// This assumes you create a custom LastScrollValue field to keep track of the previous value.
−
int scrollValue = this.Helper.Input.GetMouseScrollValue();
−
int scrollChange = scrollValue - this.LastScrollValue;