![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The ITouchableHandler interface.
The touchable handler is used by Graph::ICamera and Graph::IButton to track the input positions and buttons on the display surface depending on the scene graph.
Initialize the touchable handler.
Boolean Init()
Deinitialize the touchable handler.
Boolean DeInit()
Create a screen area object.
Murl.Input.IScreenArea CreateScreenArea()
Destroy a screen area object.
Boolean, Murl.Input.IScreenArea DestroyScreenArea(Murl.Input.IScreenArea screenArea)
screenArea | A reference to the screen area object pointer. After destruction the pointer is set to null. |
Create a projection object.
Murl.Input.IProjection CreateProjection()
Destroy a projection object.
Boolean, Murl.Input.IProjection DestroyProjection(Murl.Input.IProjection screenProjection)
screenProjection | A reference to the projection object pointer. After destruction the pointer is set to null. |
Create a planar touch area object.
Murl.Input.ITouchArea CreatePlanarTouchArea(Murl.IEnums.TouchAreaShape type)
type | The kind of planar touch area to create. |
Create a mesh touch area object.
Murl.Input.ITouchArea CreateMeshTouchArea()
Destroy a touch area object.
Boolean, Murl.Input.ITouchArea DestroyTouchArea(Murl.Input.ITouchArea touchArea)
touchArea | A reference to the touch area pointer. After destruction the pointer is set to null. |
Reset all screen projections.
Boolean Reset()
Set the current layer.
Boolean SetCurrentLayer(Integer layer)
layer | The current layer. |
Add and set the current projection.
Boolean AddCurrentProjection(Murl.Input.IProjection projection, Murl.Input.IScreenArea screenArea)
projection | The current projection to add or null. |
screenArea | The screen area the projection belongs to, or null for default. |
Add a touch area to the current screen projection considering the current tansformation, depth order and layer.
Boolean AddTouchArea(Murl.Input.ITouchArea touchArea, Murl.Input.IScreenArea subScreenArea)
touchArea | The touch area to add. |
subScreenArea | The optional screen area to delegate input to, or null if no delegation is desired. |
Begin reporting device inputs.
Boolean ReportBegin()
Report a device input.
Boolean ReportDevice(Murl.IEnums.InputDeviceType deviceType, Integer deviceId, Boolean hasUpdate, Murl.Input.IMouseButtons buttons, Number posX, Number posY, Boolean inRangeX, Boolean inRangeY, Boolean moved, Boolean cancelled)
deviceType | The device type. |
deviceId | The device identifier. |
hasUpdate | true if the device has received new data since the last report. |
buttons | The mouse buttons interface. |
posX | The device x-position on the display surface. |
posY | The device y-position on the display surface. |
inRangeX | true if posX was not clamped to the window area. |
inRangeY | true if posY was not clamped to the window area. |
moved | true if the device was moved. |
cancelled | true if the device input was cancelled. |
End reporting device inputs.
Boolean ReportEnd()