sgTouches Namespace Reference

Functions

void addTouch (sgVector2 pos)
void updateTouch (int num, sgVector2 pos, sgVector2 prepos)
void removeTouch (int num)

Variables

std::vector< sgTouch * > touches

Detailed Description

Touch namespace. Receives and handles touches.


Function Documentation

void sgTouches::addTouch ( sgVector2  pos  ) 

Add touch. Adds a new touch to the touch array.

Parameters:
pos the position of the new touch
void sgTouches::removeTouch ( int  num  ) 

Remove touch. Removes a touch from the touch array.

Parameters:
num the position of the touch within the touch array to remove
void sgTouches::updateTouch ( int  num,
sgVector2  pos,
sgVector2  prepos 
)

Update touch. Updates a touch in the touch array.

Parameters:
num the position of the touch within the touch array to update
pos the touches new position
prepos the touches previous position

Variable Documentation

std::vector< sgTouch * > sgTouches::touches

Touch array. Array storing all current touches.

Generated on Thu Jun 3 13:31:04 2010 for iSDGE by  doxygen 1.6.3