HostGesturer

HostGesturer

Class to handle Host Gestures

Constructor

new HostGesturer()

Methods

isKnownGesture(gestureName)

returns true if the given gestureName is found in the this._gestures array, which implies it has a valid set of gesture animStates

Parameters:
Name Type Description
gestureName string

isTransitionAnimStateName(stateName)

returns true if given stateName matches the configured naming conventions for a transition animState name

Parameters:
Name Type Description
stateName string

process(tpf)

Called on every frame - handles gesture timers

Parameters:
Name Type Description
tpf number

time per frame in seconds