Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Types | Static Public Member Functions | List of all members
jop::Touch Class Reference

#include <Touch.hpp>

Public Types

enum  Info { Pressure, Size, TouchMajor, ToolMajor }
 

Static Public Member Functions

static bool isDown (const int id=0)
 Check if touch is currently down. More...
 
static glm::vec2 getPosition (const int id=0)
 Get position of a specific touch. More...
 

Detailed Description

Definition at line 34 of file Touch.hpp.

Member Enumeration Documentation

Information

Enumerator
Pressure 

Approximate pressure applied to the surface.

Size 

Approximate size of the contact area.

TouchMajor 

Major axis of an ellipse that represents the touch area at the point of contact.

ToolMajor 

Major axis of an ellipse that represents the size of the approaching touch.

Definition at line 40 of file Touch.hpp.

Member Function Documentation

static glm::vec2 jop::Touch::getPosition ( const int  id = 0)
static

Get position of a specific touch.

Parameters
idThe touch id
Returns
Touch position, [-1, -1] if the touch is not down
static bool jop::Touch::isDown ( const int  id = 0)
static

Check if touch is currently down.

Parameters
idThe finger id
Returns
True if the touch is down

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