![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IMouseButtons interface.
The base interface of input device classes implementing mouse buttons.
Get the number of buttons available in the device.
Integer GetNumberOfButtons()
Check if a specified mouse button is pressed. A valid mouse button identifier is [0 .. GetNumberOfButtons() - 1].
Boolean IsButtonPressed(Murl.IEnums.MouseButton button)
button | The mouse button identifier. |
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)
button | The mouse button identifier. |
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)
button | The mouse button identifier. |