@@ -12,83 +12,83 @@ namespace Mouse {
1212 /* *
1313 * Detect if a mouse button has been pressed once
1414 */
15- static bool IsButtonPressed (int button) {
15+ [[maybe_unused]] RLCPPAPI inline bool IsButtonPressed (int button) {
1616 return ::IsMouseButtonPressed (button);
1717 }
1818
1919 /* *
2020 * Detect if a mouse button is being pressed
2121 */
22- static bool IsButtonDown (int button) {
22+ [[maybe_unused]] RLCPPAPI inline bool IsButtonDown (int button) {
2323 return ::IsMouseButtonDown (button);
2424 }
2525
2626 /* *
2727 * Detect if a mouse button has been released once
2828 */
29- static bool IsButtonReleased (int button) {
29+ [[maybe_unused]] RLCPPAPI inline bool IsButtonReleased (int button) {
3030 return ::IsMouseButtonReleased (button);
3131 }
3232
33- static bool IsButtonUp (int button) {
33+ [[maybe_unused]] RLCPPAPI inline bool IsButtonUp (int button) {
3434 return ::IsMouseButtonUp (button);
3535 }
3636
37- static int GetX () {
37+ [[maybe_unused]] RLCPPAPI inline int GetX () {
3838 return ::GetMouseX ();
3939 }
4040
41- static int GetY () {
41+ [[maybe_unused]] RLCPPAPI inline int GetY () {
4242 return ::GetMouseY ();
4343 }
4444
45- static void SetX (int x) {
45+ [[maybe_unused]] RLCPPAPI inline void SetX (int x) {
4646 ::SetMousePosition (x, GetY());
4747 }
4848
49- static void SetY (int y) {
49+ [[maybe_unused]] RLCPPAPI inline void SetY (int y) {
5050 ::SetMousePosition (GetX(), y);
5151 }
5252
53- static Vector2 GetPosition () {
53+ [[maybe_unused]] RLCPPAPI inline Vector2 GetPosition () {
5454 return ::GetMousePosition ();
5555 }
5656
57- static void SetPosition (int x, int y) {
57+ [[maybe_unused]] RLCPPAPI inline void SetPosition (int x, int y) {
5858 ::SetMousePosition (x, y);
5959 }
6060
61- static void SetPosition (::Vector2 position) {
61+ [[maybe_unused]] RLCPPAPI inline void SetPosition (::Vector2 position) {
6262 ::SetMousePosition (static_cast <int >(position.x), static_cast<int>(position.y));
6363 }
6464
6565 /* *
6666 * Get mouse delta between frames
6767 */
68- static Vector2 GetDelta () {
68+ [[maybe_unused]] RLCPPAPI inline Vector2 GetDelta () {
6969 return ::GetMouseDelta ();
7070 }
7171
72- static void SetOffset (int offsetX = 0 , int offsetY = 0 ) {
72+ [[maybe_unused]] RLCPPAPI inline void SetOffset (int offsetX = 0 , int offsetY = 0 ) {
7373 ::SetMouseOffset (offsetX, offsetY);
7474 }
7575
76- static void SetOffset (::Vector2 offset) {
76+ [[maybe_unused]] RLCPPAPI inline void SetOffset (::Vector2 offset) {
7777 ::SetMouseOffset (static_cast <int >(offset.x), static_cast<int>(offset.y));
7878 }
7979
80- static void SetScale (float scaleX = 1 .0f , float scaleY = 1 .0f ) {
80+ [[maybe_unused]] RLCPPAPI inline void SetScale (float scaleX = 1 .0f , float scaleY = 1 .0f ) {
8181 ::SetMouseScale (scaleX, scaleY);
8282 }
8383
84- static void SetScale (::Vector2 scale) {
84+ [[maybe_unused]] RLCPPAPI inline void SetScale (::Vector2 scale) {
8585 ::SetMouseScale (scale.x, scale.y);
8686 }
8787
8888 /* *
8989 * Get mouse wheel movement for X or Y, whichever is larger
9090 */
91- static float GetWheelMove () {
91+ [[maybe_unused]] RLCPPAPI inline float GetWheelMove () {
9292 return ::GetMouseWheelMove ();
9393 }
9494
@@ -97,7 +97,7 @@ namespace Mouse {
9797 *
9898 * @see ::GetMouseWheelMoveV()
9999 */
100- static Vector2 GetWheelMoveV () {
100+ [[maybe_unused]] RLCPPAPI inline Vector2 GetWheelMoveV () {
101101 return GetMouseWheelMoveV ();
102102 }
103103
@@ -106,42 +106,42 @@ namespace Mouse {
106106 *
107107 * @see ::MouseCursor
108108 */
109- static void SetCursor (int cursor = MOUSE_CURSOR_DEFAULT) {
109+ [[maybe_unused]] RLCPPAPI inline void SetCursor (int cursor = MOUSE_CURSOR_DEFAULT) {
110110 ::SetMouseCursor (cursor);
111111 }
112112
113113 /* *
114114 * Get touch position X for touch point 0 (relative to screen size)
115115 */
116- static int GetTouchX () {
116+ [[maybe_unused]] RLCPPAPI inline int GetTouchX () {
117117 return ::GetTouchX ();
118118 }
119119
120120 /* *
121121 * Get touch position Y for touch point 0 (relative to screen size)
122122 */
123- static int GetTouchY () {
123+ [[maybe_unused]] RLCPPAPI inline int GetTouchY () {
124124 return ::GetTouchY ();
125125 }
126126
127127 /* *
128128 * Get touch position XY for a touch point index (relative to screen size)
129129 */
130- static Vector2 GetTouchPosition (int index) {
130+ [[maybe_unused]] RLCPPAPI inline Vector2 GetTouchPosition (int index) {
131131 return ::GetTouchPosition (index);
132132 }
133133
134134 /* *
135135 * Get a ray trace from mouse position
136136 */
137- static Ray GetRay (::Vector2 mousePosition, const ::Camera& camera) {
137+ [[maybe_unused]] RLCPPAPI inline Ray GetRay (::Vector2 mousePosition, const ::Camera& camera) {
138138 return ::GetMouseRay (mousePosition, camera);
139139 }
140140
141141 /* *
142142 * Get a ray trace from mouse position
143143 */
144- static Ray GetRay (const ::Camera& camera) {
144+ [[maybe_unused]] RLCPPAPI inline Ray GetRay (const ::Camera& camera) {
145145 return ::GetMouseRay (::GetMousePosition (), camera);
146146 }
147147};
0 commit comments