![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Input-related functions: mouse. More...
Static Public Member Functions | |
| static Vector2 | GetPosition () |
| static Vector2 | GetTouchPosition (int index) |
| Get touch position XY for a touch point index (relative to screen size) | |
| static int | GetTouchX () |
| Get touch position X for touch point 0 (relative to screen size) | |
| static int | GetTouchY () |
| Get touch position Y for touch point 0 (relative to screen size) | |
| static float | GetWheelMove () |
| static int | GetX () |
| static int | GetY () |
| static bool | IsButtonDown (int button) |
| Detect if a mouse button is being pressed. | |
| static bool | IsButtonPressed (int button) |
| Detect if a mouse button has been pressed once. | |
| static bool | IsButtonReleased (int button) |
| Detect if a mouse button has been released once. | |
| static bool | IsButtonUp (int button) |
| static void | SetCursor (int cursor=MOUSE_CURSOR_DEFAULT) |
| Sets the current mouse cursor icon. More... | |
| static void | SetOffset (::Vector2 offset) |
| static void | SetOffset (int offsetX=0, int offsetY=0) |
| static void | SetPosition (::Vector2 position) |
| static void | SetPosition (int x, int y) |
| static void | SetScale (::Vector2 scale) |
| static void | SetScale (float scaleX=1.0f, float scaleY=1.0f) |
| static void | SetX (int x) |
| static void | SetY (int y) |
1.8.17