1 #ifndef RAYLIB_CPP_MOUSE_HPP_ 2 #define RAYLIB_CPP_MOUSE_HPP_ 12 #include "Vector2.hpp" 18 return ::IsMouseButtonPressed(button);
21 return ::IsMouseButtonDown(button);
24 return ::IsMouseButtonReleased(button);
27 return ::IsMouseButtonUp(button);
36 ::SetMouseOffset(x,
GetY());
40 ::SetMouseOffset(
GetX(), y);
44 return ::GetMousePosition();
47 ::SetMousePosition(x, y);
51 ::SetMouseOffset(offsetX, offsetY);
55 ::SetMouseScale(scaleX, scaleY);
59 return ::GetMouseWheelMove();
68 return ::GetTouchPosition(index);
bool IsButtonUp(int button)
bool IsButtonReleased(int button)
bool IsButtonDown(int button)
Vector2 GetTouchPosition(int index)
Mouse & SetPosition(int x, int y)
bool IsButtonPressed(int button)
Provides all the classes associated with raylib-cpp.
Mouse & SetOffset(int offsetX, int offsetY)
Mouse & SetScale(float scaleX, float scaleY)