1#ifndef RAYLIB_CPP_INCLUDE_TOUCH_HPP_
2#define RAYLIB_CPP_INCLUDE_TOUCH_HPP_
5#include "./Vector2.hpp"
15 [[maybe_unused]] RLCPPAPI
inline int GetX() {
22 [[maybe_unused]] RLCPPAPI
inline int GetY() {
30 return ::GetTouchPosition(index);
36 [[maybe_unused]] RLCPPAPI
inline int GetPointId(
int index) {
37 return ::GetTouchPointId(index);
44 return ::GetTouchPointCount();
Input-related functions: touch.
RLCPPAPI int GetPointId(int index)
Get touch point identifier for given index.
RLCPPAPI int GetX()
Get touch position X for touch point 0 (relative to screen size)
RLCPPAPI int GetY()
Get touch position Y for touch point 0 (relative to screen size)
RLCPPAPI int GetPointCount()
Get number of touch points.
RLCPPAPI Vector2 GetPosition(int index)
Get touch position XY for a touch point index (relative to screen size)