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
MouseEvent(int, int, int, int)
public MouseEvent(int x, int y, int deltaX, int deltaY)
Parameters
MouseEvent(int, int, int, int, EnumMouseButton)
public MouseEvent(int x, int y, int deltaX, int deltaY, EnumMouseButton button)
Parameters
x
inty
intdeltaX
intdeltaY
intbutton
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
MouseEvent(int, int, EnumMouseButton)
public MouseEvent(int x, int y, EnumMouseButton button)
Parameters
x
inty
intbutton
EnumMouseButton
MouseEvent(int, int, EnumMouseButton, int)
public MouseEvent(int x, int y, EnumMouseButton button, int modifiers)
Parameters
x
inty
intbutton
EnumMouseButtonmodifiers
int
Properties
Button
Gets the current mouse button pressed.
public EnumMouseButton Button { get; }
Property Value
DeltaX
The X movement of the mouse.
public int DeltaX { get; }
Property Value
DeltaY
The Y movement of the mouse.
public int DeltaY { get; }
Property Value
Handled
Am I handled?
public bool Handled { get; set; }
Property Value
Modifiers
public int Modifiers { get; }
Property Value
X
Current X position of the mouse.
public int X { get; }
Property Value
Y
Current Y position of the mouse.
public int Y { get; }