Banuba SDK
Loading...
Searching...
No Matches
bnb::interfaces::touch Struct Referencefinal

User touch object. More...

#include <touch.hpp>

Public Member Functions

 touch (float x_, float y_, int64_t id_)
 

Public Attributes

float x
 
float y
 
int64_t id
 

Detailed Description

User touch object.

Coordinate system is normalized to (-1, 1) with center in (0, 0).

Definition at line 19 of file touch.hpp.

Constructor & Destructor Documentation

◆ touch()

bnb::interfaces::touch::touch ( float x_,
float y_,
int64_t id_ )
inline

Definition at line 24 of file touch.hpp.

27 : x(std::move(x_))
28 , y(std::move(y_))
29 , id(std::move(id_))
30 {}

Member Data Documentation

◆ id

int64_t bnb::interfaces::touch::id

Definition at line 22 of file touch.hpp.

◆ x

float bnb::interfaces::touch::x

Definition at line 20 of file touch.hpp.

◆ y

float bnb::interfaces::touch::y

Definition at line 21 of file touch.hpp.


The documentation for this struct was generated from the following file: