|
MochiEngine
|
#include <IMouseProvider.h>
Public Member Functions | |
| virtual std::array< bool, MouseButton::MouseButtonsCount > | GetState (float *x, float *y) const =0 |
| Gets the state of the mouse, consisting of the pointer position in the screen and each of its buttons, defined in InputCommons.h in the MouseButtons enum. | |
Interface used to get per-frame data of the connected mouse.
|
pure virtual |
Gets the state of the mouse, consisting of the pointer position in the screen and each of its buttons, defined in InputCommons.h in the MouseButtons enum.
| x | Reference to a value that will be updated in the method with the X position. |
| y | Reference to a value that will be updated in the method with the Y position. |
Implemented in Mochi::Input::DummyMouseProvider, and Mochi::Input::SDLMouseProvider.