Maven module :un.engine : engine-ui :
Class : un.engine.ui.ievent.KeyEvent
Extends/Implements : un.api.event.DefaultEvent
Subclasses : -

A keyboard event
author  Johann Sorel


Variables : TYPE_PRESS, TYPE_RELEASE, KC_BEGIN, KC_END, KC_BACKSPACE, KC_TAB, KC_ENTER, KC_CONTROL, KC_DELETE, KC_LEFT, KC_UP, KC_RIGHT, KC_DOWN
Functions : KeyEvent, getType, getCodePoint, getCode, resource


public int TYPE_PRESS

public int TYPE_RELEASE



public int KC_BEGIN

public int KC_END

public int KC_BACKSPACE

public int KC_TAB

public int KC_ENTER

public int KC_CONTROL

public int KC_DELETE

public int KC_LEFT

public int KC_UP

public int KC_RIGHT

public int KC_DOWN



Create a new key event.
param  source source of the event
param  type one of KeyEvent.TYPE_X
param  cp character codepoint
public void KeyEvent (EventSource source, int type, int cp, int code)


Keyboard event type.
return  int, one of KeyEvent.TYPE_X
public int getType ()


Get the pressed character codepoint.
return  int, unicode codepoint of typed character
public int getCodePoint ()


KeyBoard key code.
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000520.html
return  key code
public int getCode ()

public KeyEvent resource (EventSource source)