1#ifndef RAYLIB_CPP_INCLUDE_TOUCH_HPP_
2#define RAYLIB_CPP_INCLUDE_TOUCH_HPP_
4#include "./Functions.hpp"
6#include "./Vector2.hpp"
16[[maybe_unused]] RLCPPAPI
inline int GetX() {
23[[maybe_unused]] RLCPPAPI
inline int GetY() {
31 return ::GetTouchPosition(index);
37[[maybe_unused]] RLCPPAPI
inline int GetPointId(
int index) {
38 return ::GetTouchPointId(index);
45 return ::GetTouchPointCount();
Input-related functions: touch.
static Vector2 GetPosition(int index)
Get touch position XY for a touch point index (relative to screen size)
static int GetPointCount()
Get number of touch points.
static int GetPointId(int index)
Get touch point identifier for given index.
static int GetY()
Get touch position Y for touch point 0 (relative to screen size)
static int GetX()
Get touch position X for touch point 0 (relative to screen size)
All raylib-cpp classes and functions appear in the raylib namespace.