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

Input-related functions: touch. More...

Functions

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

Detailed Description

Input-related functions: touch.

Function Documentation

◆ GetPointCount()

static int raylib::Touch::GetPointCount ( )
inlinestatic

Get number of touch points.

Definition at line 44 of file Touch.hpp.

◆ GetPointId()

static int raylib::Touch::GetPointId ( int  index)
inlinestatic

Get touch point identifier for given index.

Definition at line 37 of file Touch.hpp.

◆ GetPosition()

static Vector2 raylib::Touch::GetPosition ( int  index)
inlinestatic

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

Definition at line 30 of file Touch.hpp.

◆ GetX()

static int raylib::Touch::GetX ( )
inlinestatic

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

Definition at line 16 of file Touch.hpp.

◆ GetY()

static int raylib::Touch::GetY ( )
inlinestatic

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

Definition at line 23 of file Touch.hpp.