The IMouseDevice interface.
More...
#include <murl_input_i_mouse_device.h>
The IMouseDevice interface.
◆ WasMoved()
virtual Bool Murl::Input::IMouseDevice::WasMoved |
( |
| ) |
const |
|
pure virtual |
Check if the mouse device was moved in the most recent tick.
- Returns
- true if the mouse device was moved in the most recent tick.
◆ GetPositionX()
virtual Real Murl::Input::IMouseDevice::GetPositionX |
( |
| ) |
const |
|
pure virtual |
Get the mouse x-position on the display surface.
- Returns
- The x-position in range [-1.0 left .. 1.0 right].
◆ GetPositionY()
virtual Real Murl::Input::IMouseDevice::GetPositionY |
( |
| ) |
const |
|
pure virtual |
Get the mouse y-position on the display surface.
- Returns
- The y-position in range [-1.0 bottom .. 1.0 top].
◆ IsPositionXInRange()
virtual Bool Murl::Input::IMouseDevice::IsPositionXInRange |
( |
| ) |
const |
|
pure virtual |
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.
- Returns
- true if the mouse x-position is in range.
◆ IsPositionYInRange()
virtual Bool Murl::Input::IMouseDevice::IsPositionYInRange |
( |
| ) |
const |
|
pure virtual |
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.
- Returns
- true if the mouse y-position is in range.
The documentation for this interface was generated from the following file:
- murl_input_i_mouse_device.h