Angel 3.2
A 2D Game Prototyping Engine
Public Member Functions | Static Public Member Functions | List of all members
TouchListener Class Reference

An abstract interface for getting mouse events. More...

#include <MultiTouch.h>

Public Member Functions

 TouchListener ()
virtual ~TouchListener ()
virtual void TouchMotionEvent (Touch *movedTouch)
virtual void TouchEndEvent (Touch *endedTouch)
virtual void TouchStartEvent (Touch *startedTouch)

Static Public Member Functions

static TouchList & GetTouchList ()

Detailed Description

This is an abstract base class which provides an interface to get notifications about what's going on with the multi-touch system. If you want to get touch data, derive a class from this one and implement the Touch*Event member functions.

Definition at line 91 of file MultiTouch.h.

Constructor & Destructor Documentation

TouchListener::TouchListener ( )

Base constructor adds this object to the list of objects to get notified when touchey things happen.

Definition at line 43 of file MultiTouch.cpp.

TouchListener::~TouchListener ( )

Base destructor removes this object from the list.

Definition at line 48 of file MultiTouch.cpp.

Member Function Documentation

void TouchListener::TouchMotionEvent ( Touch movedTouch)

Called whenever an existing touch moves.

movedTouchA pointer to a Touch object representing the specific touch that moved.

Definition at line 54 of file MultiTouch.cpp.

void TouchListener::TouchEndEvent ( Touch endedTouch)

Called whenever a touch ends.

endedTouchA pointer to a Touch object representing the specific touch that just ended.

Definition at line 55 of file MultiTouch.cpp.

void TouchListener::TouchStartEvent ( Touch startedTouch)

Called whenever a new touch starts.

startedTouchA pointer to a Touch object representing the specific touch that just started.

Definition at line 56 of file MultiTouch.cpp.

TouchList & TouchListener::GetTouchList ( )

A static function to get access to a list of the current Touch objects being detected.

Definition at line 58 of file MultiTouch.cpp.

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