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

Class enchant.KeyboardInputManager

Class that manage keyboard input.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class enchant.BinaryInputManager:
activeEventNameSuffix, activeInputsNum, inactiveEventNameSuffix
Fields borrowed from class enchant.InputManager:
broadcastTarget, source, valueStore

Method Summary

Method Attributes Method Name and Description
 
keybind(keyCode, name)
Call enchant.BinaryInputManager#bind with BinaryInputSource equivalent of key code.
 
keyunbind(keyCode)
Call enchant.BinaryInputManager#unbind with BinaryInputSource equivalent of key code.
Methods borrowed from class enchant.BinaryInputManager:
bind
changeState
unbind
Methods borrowed from class enchant.InputManager:
addBroadcastTarget
broadcastEvent
removeBroadcastTarget
Methods borrowed from class enchant.EventTarget:
addEventListener
clearEventListener
dispatchEvent
on
removeEventListener

Class Detail

enchant.KeyboardInputManager(dom, flagStore)
Parameters:
{HTMLElement} dom
element that will be watched.
{*} flagStore
object that store input flag.

Method Detail