Updated raylib-cpp header files

This commit is contained in:
2025-09-08 22:06:21 -04:00
parent a0a658ca8a
commit fff611cc72
45 changed files with 2533 additions and 2382 deletions

View File

@@ -1,51 +1,51 @@
#ifndef RAYLIB_CPP_INCLUDE_TOUCH_HPP_
#define RAYLIB_CPP_INCLUDE_TOUCH_HPP_
#include "./Functions.hpp"
#include "./raylib.hpp"
namespace raylib {
/**
* Input-related functions: touch
*/
class Touch {
public:
/**
* Get touch position X for touch point 0 (relative to screen size)
*/
inline static int GetX() {
return ::GetTouchX();
}
namespace Touch {
/**
* Get touch position X for touch point 0 (relative to screen size)
*/
[[maybe_unused]] RLCPPAPI inline int GetX() {
return ::GetTouchX();
}
/**
* Get touch position Y for touch point 0 (relative to screen size)
*/
inline static int GetY() {
return ::GetTouchY();
}
/**
* Get touch position Y for touch point 0 (relative to screen size)
*/
[[maybe_unused]] RLCPPAPI inline int GetY() {
return ::GetTouchY();
}
/**
* Get touch position XY for a touch point index (relative to screen size)
*/
inline static Vector2 GetPosition(int index) {
return ::GetTouchPosition(index);
}
/**
* Get touch position XY for a touch point index (relative to screen size)
*/
[[maybe_unused]] RLCPPAPI inline Vector2 GetPosition(int index) {
return ::GetTouchPosition(index);
}
/**
* Get touch point identifier for given index
*/
inline static int GetPointId(int index) {
return ::GetTouchPointId(index);
}
/**
* Get touch point identifier for given index
*/
[[maybe_unused]] RLCPPAPI inline int GetPointId(int index) {
return ::GetTouchPointId(index);
}
/**
* Get number of touch points
*/
inline static int GetPointCount() {
return ::GetTouchPointCount();
}
};
} // namespace raylib
/**
* Get number of touch points
*/
[[maybe_unused]] RLCPPAPI inline int GetPointCount() {
return ::GetTouchPointCount();
}
} // namespace Touch
} // namespace raylib
using RTouch = raylib::Touch;
namespace RTouch = raylib::Touch;
#endif // RAYLIB_CPP_INCLUDE_TOUCH_HPP_
#endif // RAYLIB_CPP_INCLUDE_TOUCH_HPP_