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

The IMouseButtons interface.

The base interface of input device classes implementing mouse buttons.


Table members

Methods


GetNumberOfButtons()

Get the number of buttons available in the device.

Integer GetNumberOfButtons()

Returns
Integer The number of buttons.

IsButtonPressed(button)

Check if a specified mouse button is pressed. A valid mouse button identifier is [0 .. GetNumberOfButtons() - 1].

Boolean IsButtonPressed(Murl.IEnums.MouseButton button)

Parameters
buttonThe mouse button identifier.
Returns
Boolean true if the button is pressed.

WasButtonPressed(button)

Check if a specified mouse button was pressed in the most recent tick. A valid mouse button identifier is [0 .. GetNumberOfButtons() - 1].

Boolean WasButtonPressed(Murl.IEnums.MouseButton button)

Parameters
buttonThe mouse button identifier.
Returns
Boolean true if the button was pressed in the most recent tick.

WasButtonReleased(button)

Check if a specified mouse button was released in the most recent tick. A valid mouse button identifier is [0 .. GetNumberOfButtons() - 1].

Boolean WasButtonReleased(Murl.IEnums.MouseButton button)

Parameters
buttonThe mouse button identifier.
Returns
Boolean true if the button was released in the most recent tick.