Packageverlocity.input
Classpublic final class KeyManager
InheritanceKeyManager Inheritance Singleton Inheritance Object



Public Methods
 MethodDefined By
  
KeyManager(defaultKeys:KeyData)
KeyManager
  
_Destruct():void
[override] Removes the current key data.
KeyManager
  
_HandleHotKeys(key:uint):void
Handles hot keys.
KeyManager
 Inherited
_IsValid():Boolean
Returns if this singleton is active/valid.
Singleton
  
EnableHotkeys(bEnabled:Boolean = true):void
Enables/disables hot keys.
KeyManager
  
Get(sKey:String):uint
Returns a uint or Array of uint key based on string found in key data.
KeyManager
  
Set(sKey:String, keyCode:uint):void
Sets a key data string reference with given uint key code
KeyManager
Constructor Detail
KeyManager()Constructor
public function KeyManager(defaultKeys:KeyData)



Parameters
defaultKeys:KeyData
Method Detail
_Destruct()method
override public function _Destruct():void

Removes the current key data.

_HandleHotKeys()method 
public function _HandleHotKeys(key:uint):void

Handles hot keys.

Parameters

key:uint

EnableHotkeys()method 
public function EnableHotkeys(bEnabled:Boolean = true):void

Enables/disables hot keys.

Parameters

bEnabled:Boolean (default = true)

Get()method 
public function Get(sKey:String):uint

Returns a uint or Array of uint key based on string found in key data.

Parameters

sKey:String — The key data string reference.

Returns
uint
Set()method 
public function Set(sKey:String, keyCode:uint):void

Sets a key data string reference with given uint key code

Parameters

sKey:String — The key data string reference name.
 
keyCode:uint — The key code