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

The IDevice interface.

The base interface of all input device classes.


Table members

Methods


GetName()

Get the device name. The default device name is "BuiltIn".

String GetName()

Returns
String The device name.

GetId()

Get the unique device identifier.

Integer GetId()

Returns
Integer The unique device identifier.

HasUpdate()

Check if the device has received new data since the last Update().

Boolean HasUpdate()

Returns
Boolean true if the device has received new data since the last Update().

LogicUpdate()

Is executed in the logic thread context each logic tick.

LogicUpdate()


ConfigChanged(appConfig)

Notification of changed configuration. The notification is executed in the engine thread context if any configuration item has changed.

ConfigChanged(Murl.IAppConfiguration appConfig)

Parameters
appConfigThe application configuration object.


Metamethods


The tostring operator

Converts the object content to a string in a reasonable format.

Returns
GetName()