![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IMouseDevice interface.
Murl.Input.IDevice
Murl.Input.IMouseButtons
Check if the mouse device was moved in the most recent tick.
Boolean WasMoved()
Get the mouse x-position on the display surface.
Number GetPositionX()
Get the mouse y-position on the display surface.
Number GetPositionY()
Check if the mouse x-position is in range of the display surface. If the mouse cursor is moved out of the display surface (e.g. the window), the mouse positions are clipped to range [-1.0, 1.0]. This method can be used to detect this case.
Boolean IsPositionXInRange()
Check if the mouse y-position is in range of the display surface. If the mouse cursor is moved out of the display surface (e.g. the window), the mouse positions are clipped to range [-1.0, 1.0]. This method can be used to detect this case.
Boolean IsPositionYInRange()