JugiMap Framework
Touch Class Reference

The Touch class provide information about touch input. More...

#include <jmInput.h>

Public Member Functions

bool IsFingerPressed (int _finger)
 Returns true if the given *_finger* is pressed; otherwise returns false. More...
 
bool IsFingerDown (int _finger)
 Returns true if the given *_finger* is hold down; otherwise returns false. More...
 
bool IsFingerReleased (int _finger)
 Returns true if the given *_finger* is released; otherwise returns false. More...
 
int GetFingerX (int _finger)
 Returns the x coordinate of the given *_finger* on screen. More...
 
int GetFingerY (int _finger)
 Returns the y coordinate of the given *_finger* on screen. More...
 
Vec2i GetFingerPos (int _finger)
 Returns position of the given *_finger* on screen. More...
 
std::array< Finger, 10 > & GetFingers ()
 Returns a reference to the vector of finger states. More...
 
void Reset ()
 Reset all finger states. More...
 

Detailed Description

The Touch class provide information about touch input.

Member Function Documentation

◆ IsFingerPressed()

bool IsFingerPressed ( int  _finger)
inline

Returns true if the given *_finger* is pressed; otherwise returns false.

◆ IsFingerDown()

bool IsFingerDown ( int  _finger)
inline

Returns true if the given *_finger* is hold down; otherwise returns false.

◆ IsFingerReleased()

bool IsFingerReleased ( int  _finger)
inline

Returns true if the given *_finger* is released; otherwise returns false.

◆ GetFingerX()

int GetFingerX ( int  _finger)
inline

Returns the x coordinate of the given *_finger* on screen.

◆ GetFingerY()

int GetFingerY ( int  _finger)
inline

Returns the y coordinate of the given *_finger* on screen.

◆ GetFingerPos()

Vec2i GetFingerPos ( int  _finger)
inline

Returns position of the given *_finger* on screen.

◆ GetFingers()

std::array<Finger, 10>& GetFingers ( )
inline

Returns a reference to the vector of finger states.

◆ Reset()

void Reset ( )

Reset all finger states.


The documentation for this class was generated from the following files: