Table of Contents

Class MouseEvent

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

This contains the data for what the mouse is currently doing.

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)

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

Parameters

x int
y int
deltaX int
deltaY int
button EnumMouseButton

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

This is apparently used for mouse move events (set to true if the mouse state has changed during constant polling, set to false if the move event came from opentk. This emulated state is apparantly used to determine the correct delta position to turn the camera.

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)

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

Parameters

x int
y int
button EnumMouseButton

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; }

Property Value

int

Y

Current Y position of the mouse.

public int Y { get; }

Property Value

int