Difference between revisions of "Legacy:Functions/Input/Mouse"
From Spherical
< Legacy:Functions | Input
(created) |
(No difference)
|
Latest revision as of 23:07, 30 May 2013
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.