Class enchant.KeyboardInputManager
キーボード入力を管理するためのクラス.
- Defined in: enchant.js
 - Extends enchant.BinaryInputManager
 
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
								 
									enchant.KeyboardInputManager(dom, flagStore)
								 
								
							 | 
						
- 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
 - キーコード.