Helper class for Input-related functions: mouse.
More...
#include <MouseHelper.hpp>
Helper class for Input-related functions: mouse.
◆ getMouseDelta()
| Vector2f raylib::helper::input::MouseHelper::getMouseDelta |
( |
| ) |
|
|
static |
Get mouse delta between frames.
- Returns
- the mouse delta
◆ getMousePosition()
| Vector2f raylib::helper::input::MouseHelper::getMousePosition |
( |
| ) |
|
|
static |
Get the mouse position.
- Returns
- the mouse position
◆ getMouseRay()
| Ray raylib::helper::input::MouseHelper::getMouseRay |
( |
const Vector2f & |
mousePosition, |
|
|
const RlCamera & |
camera |
|
) |
| |
|
static |
Get a ray trace from mouse position.
- Parameters
-
| mousePosition | the mouse position |
| camera | the camera |
- Returns
- the ray trace
◆ getMouseWheelMove()
| float raylib::helper::input::MouseHelper::getMouseWheelMove |
( |
| ) |
|
|
static |
Get mouse wheel movement Y.
- Returns
- the mouse wheel movement Y
◆ getMouseX()
| int raylib::helper::input::MouseHelper::getMouseX |
( |
| ) |
|
|
static |
Get the mouse X position.
- Returns
- the mouse X position
◆ getMouseY()
| int raylib::helper::input::MouseHelper::getMouseY |
( |
| ) |
|
|
static |
Get the mouse Y position.
- Returns
- the mouse Y position
◆ isMouseButtonDown()
| bool raylib::helper::input::MouseHelper::isMouseButtonDown |
( |
const MouseButton & |
button | ) |
|
|
static |
Check if a mouse button is being pressed.
- Parameters
-
| button | the button to check |
- Returns
- true if the button is being pressed
◆ isMouseButtonPressed()
| bool raylib::helper::input::MouseHelper::isMouseButtonPressed |
( |
const MouseButton & |
button | ) |
|
|
static |
Check if a mouse button has been pressed once.
- Parameters
-
| button | the button to check |
- Returns
- true if the button has been pressed once
◆ isMouseButtonReleased()
| bool raylib::helper::input::MouseHelper::isMouseButtonReleased |
( |
const MouseButton & |
button | ) |
|
|
static |
Check if a mouse button has been released once.
- Parameters
-
| button | the button to check |
- Returns
- true if the button has been released once
◆ isMouseButtonUp()
| bool raylib::helper::input::MouseHelper::isMouseButtonUp |
( |
const MouseButton & |
button | ) |
|
|
static |
Check if a mouse button is NOT being pressed.
- Parameters
-
| button | the button to check |
- Returns
- true if the button is NOT being pressed
◆ setMouseCursor()
| void raylib::helper::input::MouseHelper::setMouseCursor |
( |
const MouseCursor & |
cursor | ) |
|
|
static |
Set mouse cursor.
- Parameters
-
◆ setMouseOffset()
| void raylib::helper::input::MouseHelper::setMouseOffset |
( |
int |
offsetX, |
|
|
int |
offsetY |
|
) |
| |
|
static |
Set mouse offset.
- Parameters
-
| offsetX | the X offset |
| offsetY | the Y offset |
◆ setMousePosition()
| void raylib::helper::input::MouseHelper::setMousePosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
static |
Set mouse position XY.
- Parameters
-
| x | the X position |
| y | the Y position |
◆ setMouseScale()
| void raylib::helper::input::MouseHelper::setMouseScale |
( |
float |
scaleX, |
|
|
float |
scaleY |
|
) |
| |
|
static |
Set mouse scaling.
- Parameters
-
| scaleX | the X scaling |
| scaleY | the Y scaling |
The documentation for this class was generated from the following files: