C# Class geek.GameEngine.TouchManager

The class that manages touch events.
Mostra file Open project: impworks/xna.geek.engine

Public Properties

Property Type Description
TouchLocationCache TouchCollection

Public Methods

Method Description
CanHandleTouch ( int id, InteractableObject obj ) : bool

Check if a touch location has been handled.

HandleTouch ( int id, InteractableObject obj ) : void

Register a touch location as handled.

Update ( ) : void

Update the touch manager.

Private Methods

Method Description
TouchManager ( ) : System

Method Details

CanHandleTouch() static public method

Check if a touch location has been handled.
static public CanHandleTouch ( int id, InteractableObject obj ) : bool
id int Touch id.
obj geek.GameEngine.Visuals.InteractableObject Object that has captured the touch.
return bool

HandleTouch() static public method

Register a touch location as handled.
static public HandleTouch ( int id, InteractableObject obj ) : void
id int Touch location id.
obj geek.GameEngine.Visuals.InteractableObject Object to capture the touch.
return void

Update() static public method

Update the touch manager.
static public Update ( ) : void
return void

Property Details

TouchLocationCache public_oe static_oe property

The cache of touch locations. Prevents multiple collection enumeration interference.
public static TouchCollection TouchLocationCache
return TouchCollection