Class: KeyEvent

LuxModule: luxinialuacore

Keyevents are produced if the use types a key.

Methods:

Method overview:


new (string key, int keycode, int since, int state)
returns: (KeyEvent)
creates a new KeyEvent with the given parameters.
KEY_PRESSED
[int] - constant if key was pressed
KEY_RELEASED
[int] - constant if key was released
KEY_TYPED
[int] - constant if key was typed
STATENAMES
[table] - a list with names for constants
key
{[string]} - key that was typed
keycode
{[int]} - code of the key that was typed
since
{[int]} - frameid since when the key is hold down
state
{[int]} - state of the button (KEY_PRESSED,...)
toString (KeyEvent)
returns: (string)
returns simple string representation