Murl Engine Lua Addon API  Version 1.0 beta
Murl.Input.IKeyboardDevice

The IKeyboardDevice interface.


Table members

Inherited


Murl.Input.IDevice

Methods


GetNumberOfKeys()

Get the number of keys pressed in the most recent tick.

Integer GetNumberOfKeys()

Returns
Integer The number of keys.

GetKey(index)

Get a key pressed in the most recent tick. A valid key buffer index is [0 .. GetNumberOfKeys() - 1].

String GetKey(Integer index)

Parameters
indexThe zero-based index of the key buffer.
Returns
String The UTF8 string of the key.

GetKeys()

Get all keys pressed in the most recent tick. To concat all keys to a string use String::Cat(const StringArray& stringArray).

Murl.Array.String GetKeys()

Returns
Murl.Array.String The UTF8 string array of the keys.