Murl Engine Lua Addon API  Version 1.0 beta
Murl.IVirtualMouse

The virtual mouse device interface.

Used by the input device handler to configure the device. Used by the platform to get information of the device.


Table members

Methods


SetRawButtonMapping(mouseButton, rawButton)

Set the mouse button to map for a raw button. The default mapping is (for AppleTV Siri Remote):

  • IEnums::MOUSE_BUTTON_LEFT <- RAWBUTTON_SELECT
  • IEnums::MOUSE_BUTTON_RIGHT <- RAWBUTTON_MENU
  • IEnums::MOUSE_BUTTON_MIDDLE <- RAWBUTTON_PLAY_PAUSE

Boolean SetRawButtonMapping(Murl.IEnums.MouseButton mouseButton, Murl.RawButtonCode rawButton)

Parameters
mouseButtonThe mouse button code.
rawButtonThe raw button code.
Returns
Boolean true if successful.

GetRawButtonMapping(rawButton)

Get the mouse button to map for a raw button.

Murl.IEnums.MouseButton GetRawButtonMapping(Murl.RawButtonCode rawButton)

Parameters
rawButtonThe raw button code.
Returns
Murl.IEnums.MouseButton The mouse button code.

SetSensivityX(factor)

Set the sensivity for the x-axis. The default value is 1.0

Boolean SetSensivityX(Number factor)

Parameters
factorThe sensivity factor for the x-axis
Returns
Boolean true if successful.

GetSensivityX()

Get the sensivity for the x-axis.

Number GetSensivityX()

Returns
Number The sensivity factor for the x-axis

SetSensivityY(factor)

Set the sensivity for the y-axis. The default value is 1.0

Boolean SetSensivityY(Number factor)

Parameters
factorThe sensivity factor for the y-axis
Returns
Boolean true if successful.

GetSensivityY()

Get the sensivity for the y-axis.

Number GetSensivityY()

Returns
Number The sensivity factor for the y-axis