Table of Contents

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

int

deltaPrecise

[Obsolete("Please use DeltaY instead.")]
public float deltaPrecise

Field Value

float

value

[Obsolete("Use IsFresh to determine if this is the first event of a continuous scroll instead.")]
public int value

Field Value

int

valuePrecise

[Obsolete("Use IsFresh to determine if this is the first event of a continuous scroll instead.")]
public float valuePrecise

Field Value

float

Properties

DeltaX

The X delta of the scroll.

public float DeltaX { get; set; }

Property Value

float

DeltaXInt

The X delta of the scroll as an int, accumulated every 50ms to simulate sensitivity.

public int DeltaXInt { get; set; }

Property Value

int

DeltaY

The Y delta of the scroll.

public float DeltaY { get; set; }

Property Value

float

DeltaYInt

The X delta of the scroll as an int, accumulated every 50ms to simulate sensitivity.

public int DeltaYInt { get; set; }

Property Value

int

IsFresh

Whether or not this is the first event to trigger in the last 50ms.

public bool IsFresh { get; set; }

Property Value

bool

IsHandled

Is the current event being handled?

public bool IsHandled { get; }

Property Value

bool

Methods

SetHandled(bool)

Changes or sets the current handled state.

public void SetHandled(bool value = true)

Parameters

value bool

Should the event be handled?