Table of Contents

Class MouseEvent

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

This contains the data for what the mouse is currently doing. Open in GitHub

public class MouseEvent
Inheritance
MouseEvent
Inherited Members
Extension Methods

Constructors

MouseEvent(int, int)

public MouseEvent(int x, int y)

Parameters

x int
y int

MouseEvent(int, int, int, int)

public MouseEvent(int x, int y, int deltaX, int deltaY)

Parameters

x int
y int
deltaX int
deltaY int

MouseEvent(int, int, int, int, EnumMouseButton, int)

public MouseEvent(int x, int y, int deltaX, int deltaY, EnumMouseButton button, int modifiers)

Parameters

x int
y int
deltaX int
deltaY int
button EnumMouseButton
modifiers int

MouseEvent(int, int, EnumMouseButton, int)

public MouseEvent(int x, int y, EnumMouseButton button, int modifiers)

Parameters

x int
y int
button EnumMouseButton
modifiers int

Properties

Button

Gets the current mouse button pressed.

public EnumMouseButton Button { get; }

Property Value

EnumMouseButton

DeltaX

The X movement of the mouse.

public int DeltaX { get; }

Property Value

int

DeltaY

The Y movement of the mouse.

public int DeltaY { get; }

Property Value

int

Handled

Am I handled?

public bool Handled { get; set; }

Property Value

bool

Modifiers

public int Modifiers { get; }

Property Value

int

X

Current X position of the mouse.

public int X { get; set; }

Property Value

int

Y

Current Y position of the mouse.

public int Y { get; set; }

Property Value

int