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

The ITouchScreenDevice interface.

Multi touch devices represents each single touch by a separate device. Multi touch reports can be disabled by IAppConfiguration::SetMultiTouchActive().


Table members

Inherited


Murl.Input.IDevice
Murl.Input.IMouseButtons

Methods


IsPressed()

Check if the touch is pressed.

Boolean IsPressed()

Returns
Boolean true if the touch is pressed.

WasCancelled()

Check if the touch was cancelled in the most recent tick. A touch controller typically cancel multi touch inputs if too much simultaneous touches are present.

Boolean WasCancelled()

Returns
Boolean true if the touch was cancelled in the most recent tick.

WasPressed()

Check if the touch was pressed in the most recent tick.

Boolean WasPressed()

Returns
Boolean true if the touch was pressed in the most recent tick.

WasReleased()

Check if the touch was released in the most recent tick.

Boolean WasReleased()

Returns
Boolean true if the touch was released in the most recent tick.

WasMoved()

Check if the touch was moved in the most recent tick.

Boolean WasMoved()

Returns
Boolean true if the touch was moved in the most recent tick.

GetPositionX()

Get the touch x-position on the display surface.

Number GetPositionX()

Returns
Number The x-position in range [-1.0 left .. 1.0 right].

GetPositionY()

Get the touch y-position on the display surface.

Number GetPositionY()

Returns
Number The y-position in range [-1.0 bottom .. 1.0 top].