25 #ifndef RAYLIB_CPP_INCLUDE_MOUSE_HPP_
26 #define RAYLIB_CPP_INCLUDE_MOUSE_HPP_
28 #include "./raylib.hpp"
30 #include "./Vector2.hpp"
42 return ::IsMouseButtonPressed(button);
49 return ::IsMouseButtonDown(button);
56 return ::IsMouseButtonReleased(button);
60 return ::IsMouseButtonUp(button);
71 static inline void SetX(
int x) {
72 ::SetMousePosition(x,
GetY());
75 static inline void SetY(
int y) {
76 ::SetMousePosition(
GetX(), y);
80 return ::GetMousePosition();
84 ::SetMousePosition(x, y);
87 static inline void SetOffset(
int offsetX,
int offsetY) {
88 ::SetMouseOffset(offsetX, offsetY);
91 static inline void SetScale(
float scaleX,
float scaleY) {
92 ::SetMouseScale(scaleX, scaleY);
96 return ::GetMouseWheelMove();
100 return ::GetMouseCursor();
104 ::SetMouseCursor(cursor);
108 return ::GetTouchX();
112 return ::GetTouchY();
116 return ::GetTouchPosition(index);
121 #endif // RAYLIB_CPP_INCLUDE_MOUSE_HPP_