Skip to content

InputKeyBoard

BelicusBr edited this page Sep 7, 2024 · 2 revisions

The InputKeyBoard represents keyboard and mouse input.

Properties Description
static int MouseIndex { get; } Gets the index of the mouse trigger that is pressed.
static bool DoubleClick { get; } Detects if there was a double click.
static float DeltaScroll { get; } Gets the mouse scrolling speed.
static Vector2 MousePosition { get; } Gets the local mouse position.
static Vector2 MouseGlobalPosition { get; } Gets the mouse position.
Methods Description
static bool GetKeyDown(KeyList) Detects whether the key has been pressed.
static bool GetKeyPress(KeyList) Detects whether the key is being pressed.
static bool GetKeyUp(KeyList) Detects whether the key has been pressed.
static bool GetMouseDown(int) Detects whether the mouse trigger has been pressed.
static bool GetMousePress(int) Detects whether the mouse trigger is being pressed.
static bool GetMouseUp(int) Detects whether the mouse trigger has been pressed.
static bool GetMouseDown(MouseButton) Detects whether the mouse trigger has been pressed.
static bool GetMousePress(MouseButton) Detects whether the mouse trigger is being pressed.
static bool GetMouseUp(MouseButton) Detects whether the mouse trigger has been pressed.