VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
TouchNavigationRouter Class Reference

Routes gamepad-related ControllerEvents according to inherent TouchNativationControllerFactory specifications. More...

Inheritance diagram for TouchNavigationRouter:
InputRouter

Classes

class  TouchNavigationControllerFactory
 Factory for constructing VirtualControllers to represent touch navigation devices as controllers. More...
 

Public Member Functions

bool addTouchNavigationControllerFactory (const TouchNavigationControllerFactory &factory)
 Adds the specified TouchNavigationControllerFactory to the list of factories to route by. More...
 
- Public Member Functions inherited from InputRouter
void onControllerDisconnect (int deviceId)
 Notifies the ControllerManager of device disconnections for all VirtualControllers associated with the specified deviceId. More...
 
virtual bool routeControllerEvent (ControllerEvent *event)
 Routes the given ControllerEvent. More...
 

Static Public Member Functions

static TouchNavigationRoutergetInstance ()
 Returns singleton instance of TouchNavigationRouter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from InputRouter
 InputRouter ()
 Constructs an empty InputRouter. More...
 
bool conflictsWithExistingFactories (const ControllerFactory &factory) const
 Returns whether or not factory conficts (i.e. intersects) with ControllerFactorys previously added to this router. More...
 
bool hasFactoryRoutes () const
 Returns whether or not this InputRouter contains any ControllerFactorys to route by. More...
 
void addControllerFactory (ControllerFactory *factory)
 Adds a ControllerFactory to route by. More...
 
void clearFactories ()
 Clears all ControllerFactorys used for routing by this InputRouter. More...
 

Detailed Description

Routes gamepad-related ControllerEvents according to inherent TouchNativationControllerFactory specifications.

Member Function Documentation

bool TouchNavigationRouter::addTouchNavigationControllerFactory ( const TouchNavigationControllerFactory factory)

Adds the specified TouchNavigationControllerFactory to the list of factories to route by.

Returns
false if factory intersects with existing factories and cannot be added.
static TouchNavigationRouter* TouchNavigationRouter::getInstance ( )
static

Returns singleton instance of TouchNavigationRouter.