raylib-cpp
C++ object-oriented wrapper library for raylib.
Loading...
Searching...
No Matches
Functions
raylib::Touch Namespace Reference

Input-related functions: touch. More...

Functions

RLCPPAPI int GetPointCount ()
 Get number of touch points. More...
 
RLCPPAPI int GetPointId (int index)
 Get touch point identifier for given index. More...
 
RLCPPAPI Vector2 GetPosition (int index)
 Get touch position XY for a touch point index (relative to screen size) More...
 
RLCPPAPI int GetX ()
 Get touch position X for touch point 0 (relative to screen size) More...
 
RLCPPAPI int GetY ()
 Get touch position Y for touch point 0 (relative to screen size) More...
 

Detailed Description

Input-related functions: touch.

Function Documentation

◆ GetPointCount()

RLCPPAPI int raylib::Touch::GetPointCount ( )
inline

Get number of touch points.

Definition at line 43 of file Touch.hpp.

◆ GetPointId()

RLCPPAPI int raylib::Touch::GetPointId ( int  index)
inline

Get touch point identifier for given index.

Definition at line 36 of file Touch.hpp.

◆ GetPosition()

RLCPPAPI Vector2 raylib::Touch::GetPosition ( int  index)
inline

Get touch position XY for a touch point index (relative to screen size)

Definition at line 29 of file Touch.hpp.

◆ GetX()

RLCPPAPI int raylib::Touch::GetX ( )
inline

Get touch position X for touch point 0 (relative to screen size)

Definition at line 15 of file Touch.hpp.

◆ GetY()

RLCPPAPI int raylib::Touch::GetY ( )
inline

Get touch position Y for touch point 0 (relative to screen size)

Definition at line 22 of file Touch.hpp.