36 return raylib::IsMouseButtonPressed(key);
39 return raylib::IsMouseButtonDown(key);
42 return raylib::IsMouseButtonReleased(key);
45 return raylib::IsMouseButtonUp(key);
49 return {float(raylib::GetMouseX()), float(raylib::GetMouseY())};
52 raylib::SetMousePosition(
int(position.
x),
int(position.
y));
56 return raylib::GetMouseWheelMove();
bool isButtonUp(Buttons key) const override
notice if a button is up
Definition RayMouse.hpp:44
bool isButtonDown(Buttons key) const override
notice if a button is down
Definition RayMouse.hpp:38
bool isButtonPressed(Buttons key) const override
notice if a button is pressed
Definition RayMouse.hpp:35
Vector2f getPosition() const override
get the position of the mouse
Definition RayMouse.hpp:48
void setPosition(Vector2f position) override
set the position of the mouse
Definition RayMouse.hpp:51
bool isButtonReleased(Buttons key) const override
notice if a button is released
Definition RayMouse.hpp:41
float GetMouseWheelMove() const override
get the mouse wheel move
Definition RayMouse.hpp:55
~RayMouse() override=default
Mouse interface.
Definition IMouse.hpp:30
Buttons
Definition IMouse.hpp:39
Vector2< double > Vector2f
Definition Vector2.hpp:112
T y
Definition Vector2.hpp:21
T x
Definition Vector2.hpp:21