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.
 
static int GetPointId (int index)
 Get touch point identifier for given index.
 
static Vector2 GetPosition (int index)
 Get touch position XY for a touch point index (relative to screen size)
 
static int GetX ()
 Get touch position X for touch point 0 (relative to screen size)
 
static int GetY ()
 Get touch position Y for touch point 0 (relative to screen size)
 

Detailed Description

Input-related functions: touch.

Function Documentation

◆ GetPointCount()

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

Get number of touch points.

Definition at line 43 of file Touch.hpp.

◆ GetPointId()

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

Get touch point identifier for given index.

Definition at line 36 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 29 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 15 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 22 of file Touch.hpp.