Legacy:Functions/Input/Mouse
From Spherical
< Legacy:Functions | Input
Mouse
Cursor location
- GetMouseX(): Get X coordinate of mouse cursor on the screen.
- GetMouseY(): Get Y coordinate of mouse cursor on the screen.
- SetMousePosition(x, y): Set mouse cursor location.
Mouse button status
- IsMouseButtonPressed(mouse_button): Check if a mouse button is being held down.
Mouse wheel event queue
- GetMouseWheelEvent(): Returns a single mouse wheel event.
- GetNumMouseWheelEvents(): Returns the length of the mouse wheel event queue.