Skip to main content

Mouse

API for interacting with the mouse.

Functions

Mouse.showCursor

Shows the cursor and allows it to move freely.

Mouse.showCursor()

Mouse.hideCursor

Hides the cursor and locks it to the window.

Mouse.hideCursor()

Enums

Button

Mouse buttons.

Value
Left
Right
Middle
Four
Five
Six
Seven
Eight

Axis

Mouse axes.

Value
CursorX
CursorY
ScrollX
ScrollY