![]() |
Murl Engine API
Version 2018.3
|
The mouse device interface. More...
#include <murl_i_mouse.h>
The mouse device interface.
Used by the platform to post events to the device.
Inherited by Murl::Input::MouseDevice.
Public Types | |
enum | EventAction { EVENT_ACTION_NONE, EVENT_ACTION_BUTTON_DOWN, EVENT_ACTION_BUTTON_UP, EVENT_ACTION_MOVE, EVENT_ACTION_FLUSH } |
Definition of event actions. More... | |
Public Member Functions | |
virtual void | PostEvent (EventAction action, IEnums::MouseButton button, Real posX, Real posY)=0 |
Post the current mouse state. More... | |
Definition of event actions.
|
pure virtual |
Post the current mouse state.
Mouse positions are clipped by the mouse device and should be reported as is, e.g. if the mouse cursor is moved out of the display surface the platform should report the calculated values < -1.0 or > 1.0.
action | The event action, see enum EventAction. |
button | The mouse button identifier. |
posX | The mouse x-position on the display surface in range [-1.0 left .. 1.0 right]. |
posY | The mouse y-position on the display surface in range [-1.0 bottom .. 1.0 top]. |