Class MouseWheelEventArgs
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
The event arguments for the mouse. Open in GitHub
public class MouseWheelEventArgs
- Inheritance
-
MouseWheelEventArgs
- Inherited Members
- Extension Methods
Fields
delta
[Obsolete("Please use DeltaYInt instead.")]
public int delta
Field Value
deltaPrecise
[Obsolete("Please use DeltaY instead.")]
public float deltaPrecise
Field Value
value
[Obsolete("Use IsFresh to determine if this is the first event of a continuous scroll instead.")]
public int value
Field Value
valuePrecise
[Obsolete("Use IsFresh to determine if this is the first event of a continuous scroll instead.")]
public float valuePrecise
Field Value
Properties
DeltaX
The X delta of the scroll.
public float DeltaX { get; set; }
Property Value
DeltaXInt
The X delta of the scroll as an int, accumulated every 50ms to simulate sensitivity.
public int DeltaXInt { get; set; }
Property Value
DeltaY
The Y delta of the scroll.
public float DeltaY { get; set; }
Property Value
DeltaYInt
The X delta of the scroll as an int, accumulated every 50ms to simulate sensitivity.
public int DeltaYInt { get; set; }
Property Value
IsFresh
Whether or not this is the first event to trigger in the last 50ms.
public bool IsFresh { get; set; }
Property Value
IsHandled
Is the current event being handled?
public bool IsHandled { get; }
Property Value
Methods
SetHandled(bool)
Changes or sets the current handled state.
public void SetHandled(bool value = true)
Parameters
valueboolShould the event be handled?