raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Input-related functions: mouse. More...
Functions | |
RLCPPAPI Vector2 | GetDelta () |
Get mouse delta between frames. | |
RLCPPAPI Vector2 | GetPosition () |
RLCPPAPI Ray | GetRay (::Vector2 mousePosition, const ::Camera &camera) |
Get a ray trace from mouse position. | |
RLCPPAPI Ray | GetRay (const ::Camera &camera) |
Get a ray trace from mouse position. | |
RLCPPAPI Vector2 | GetTouchPosition (int index) |
Get touch position XY for a touch point index (relative to screen size) | |
RLCPPAPI int | GetTouchX () |
Get touch position X for touch point 0 (relative to screen size) | |
RLCPPAPI int | GetTouchY () |
Get touch position Y for touch point 0 (relative to screen size) | |
RLCPPAPI float | GetWheelMove () |
Get mouse wheel movement for X or Y, whichever is larger. | |
RLCPPAPI Vector2 | GetWheelMoveV () |
Get mouse wheel movement for both X and Y. More... | |
RLCPPAPI int | GetX () |
RLCPPAPI int | GetY () |
RLCPPAPI bool | IsButtonDown (int button) |
Detect if a mouse button is being pressed. | |
RLCPPAPI bool | IsButtonPressed (int button) |
Detect if a mouse button has been pressed once. | |
RLCPPAPI bool | IsButtonReleased (int button) |
Detect if a mouse button has been released once. | |
RLCPPAPI bool | IsButtonUp (int button) |
RLCPPAPI void | SetCursor (int cursor=MOUSE_CURSOR_DEFAULT) |
Sets the current mouse cursor icon. More... | |
RLCPPAPI void | SetOffset (::Vector2 offset) |
RLCPPAPI void | SetOffset (int offsetX=0, int offsetY=0) |
RLCPPAPI void | SetPosition (::Vector2 position) |
RLCPPAPI void | SetPosition (int x, int y) |
RLCPPAPI void | SetScale (::Vector2 scale) |
RLCPPAPI void | SetScale (float scaleX=1.0f, float scaleY=1.0f) |
RLCPPAPI void | SetX (int x) |
RLCPPAPI void | SetY (int y) |
Input-related functions: mouse.
|
inline |