Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:22

Class enchant.BinaryInputManager

Class for managing input.

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.BinaryInputManager(flagStore, activeEventNameSuffix, inactiveEventNameSuffix, source)
Field Summary
Field Attributes Field Name and Description
 
event name suffix that dispatched by BinaryInputManager.
 
The number of active inputs.
 
event name suffix that dispatched by BinaryInputManager.
Fields borrowed from class enchant.InputManager:
broadcastTarget, source, valueStore

Method Summary

Method Attributes Method Name and Description
 
bind(inputSource, name)
Name specified input.
 
changeState(name, bool)
Change state of input.
 
unbind(inputSource)
Remove binded name.
Methods borrowed from class enchant.InputManager:
addBroadcastTarget
broadcastEvent
removeBroadcastTarget
Methods borrowed from class enchant.EventTarget:
addEventListener
clearEventListener
dispatchEvent
on
removeEventListener

Class Detail

enchant.BinaryInputManager(flagStore, activeEventNameSuffix, inactiveEventNameSuffix, source)
Parameters:
{*} flagStore
object that store input flag.
{String} activeEventNameSuffix
event name suffix.
{String} inactiveEventNameSuffix
event name suffix.
{*} source Optional, Default: this
source that will be added to event object.

Field Detail

{String} activeEventNameSuffix
event name suffix that dispatched by BinaryInputManager.
{Number} activeInputsNum
The number of active inputs.
{String} inactiveEventNameSuffix
event name suffix that dispatched by BinaryInputManager.

Method Detail