![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IDeviceHandler interface.
The device handler creates and registers all input device instances. Devices are used by the platform which post's the current device states. The states are processed by the registered devices each logic tick before executing the logic processors Logic::IEngineProcessor::ProcessTick().
Initialize the device handler.
Boolean Init(Murl.IAppConfiguration appConfig)
appConfig | The application configuration object. |
Deinitialize the device handler.
Boolean DeInit()
Update all registered devices. The update is executed in the logic thread context each logic tick before executing the logic processors Logic::IEngineProcessor::ProcessTick().
Boolean UpdateDevices()
Notification of changed configuration. The notification is executed in the engine thread context if any configuration item has changed.
ConfigChanged(Murl.IAppConfiguration appConfig)
appConfig | The application configuration object. |
Begin updating the touchable handler. The update is executed in the logic thread context each logic tick after executing the logic processors Logic::IEngineProcessor::ProcessTick() and before the graph's logic-traversal.
Boolean BeginLogicUpdate(Murl.Input.ITouchableHandler touchableHandler)
touchableHandler | The touchable handler object. |
End updating the touchable handler. The update is executed in the logic thread context each logic tick after executing UpdateDevices() and before executing the logic processors Logic::IEngineProcessor::ProcessTick().
Boolean EndLogicUpdate(Murl.Input.ITouchableHandler touchableHandler)
touchableHandler | The touchable handler object. |
Get a registered accelerometer device object.
Murl.Input.IAccelerometerDevice GetAccelerometerDevice(Integer index)
index | The zero-based index of the device. |
Get a registered gyroscope device object.
Murl.Input.IGyroscopeDevice GetGyroscopeDevice(Integer index)
index | The zero-based index of the device. |
Get a registered heading device object.
Murl.Input.IHeadingDevice GetHeadingDevice(Integer index)
index | The zero-based index of the device. |
Get a registered location device object.
Murl.Input.ILocationDevice GetLocationDevice(Integer index)
index | The zero-based index of the device. |
Get the number of registered game controller devices.
Integer GetNumberOfGameControllerDevices()
Get a registered mutable game controller device object. A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
Murl.Input.IGameControllerDevice GetGameControllerDevice(Integer index)
index | The zero-based index of the device. |
Get a registered keyboard device object.
Murl.Input.IKeyboardDevice GetKeyboardDevice(Integer index)
index | The zero-based index of the device. |
Get a registered motion device object.
Murl.Input.IMotionDevice GetMotionDevice(Integer index)
index | The zero-based index of the device. |
Get a registered mouse device object.
Murl.Input.IMouseDevice GetMouseDevice(Integer index)
index | The zero-based index of the device. |
Get a registered orientation device object.
Murl.Input.IOrientationDevice GetOrientationDevice(Integer index)
index | The zero-based index of the device. |
Get a registered raw-button device object.
Murl.Input.IRawButtonDevice GetRawButtonDevice(Integer index)
index | The zero-based index of the device. |
Get a registered raw-keyboard device object.
Murl.Input.IRawKeyboardDevice GetRawKeyboardDevice(Integer index)
index | The zero-based index of the device. |
Get a registered raw-mouse device object.
Murl.Input.IRawMouseDevice GetRawMouseDevice(Integer index)
index | The zero-based index of the device. |
Get the number of registered touch-screen devices.
Integer GetNumberOfTouchScreenDevices()
Get a registered touch-screen device object. A valid device index is [0 .. GetNumberOfTouchScreenDevices() - 1].
Murl.Input.ITouchScreenDevice GetTouchScreenDevice(Integer index)
index | The zero-based index of the device. |
Get the virtual-mouse device object.
Murl.IVirtualMouse GetVirtualMouse()