25 #ifndef RAYLIB_CPP_INCLUDE_MOUSE_HPP_
26 #define RAYLIB_CPP_INCLUDE_MOUSE_HPP_
28 #include "./raylib.hpp"
30 #include "./Vector2.hpp"
39 return ::IsMouseButtonPressed(button);
43 return ::IsMouseButtonDown(button);
47 return ::IsMouseButtonReleased(button);
51 return ::IsMouseButtonUp(button);
62 static inline void SetX(
int x) {
63 ::SetMousePosition(x,
GetY());
66 static inline void SetY(
int y) {
67 ::SetMousePosition(
GetX(), y);
71 return ::GetMousePosition();
75 ::SetMousePosition(x, y);
78 static inline void SetOffset(
int offsetX,
int offsetY) {
79 ::SetMouseOffset(offsetX, offsetY);
82 static inline void SetScale(
float scaleX,
float scaleY) {
83 ::SetMouseScale(scaleX, scaleY);
87 return ::GetMouseWheelMove();
91 return ::GetMouseCursor();
95 ::SetMouseCursor(cursor);
103 return ::GetTouchY();
107 return ::GetTouchPosition(index);
112 #endif // RAYLIB_CPP_INCLUDE_MOUSE_HPP_