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

Class enchant.KeyboardInputManager

キーボード入力を管理するためのクラス.

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)
キーコードに対応したBinaryInputSourceを使ってenchant.BinaryInputManager#bind を呼び出す.
 
keyunbind(keyCode)
キーコードに対応したBinaryInputSourceを使ってenchant.BinaryInputManager#unbind を呼び出す.
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

  • keybind(keyCode, name)
    キーコードに対応したBinaryInputSourceを使ってenchant.BinaryInputManager#bind を呼び出す.
    Parameters:
    {Number} keyCode
    キーコード.
    {String} name
    入力の名前.
  • keyunbind(keyCode)
    キーコードに対応したBinaryInputSourceを使ってenchant.BinaryInputManager#unbind を呼び出す.
    Parameters:
    {Number} keyCode
    キーコード.