|
MochiEngine
|
Implementation of IMouseProvider that uses SDL_GetMouseState and SDL_RenderCoordinatesFromWindow to retrieve mouse data. More...
#include <SDLMouseProvider.h>
Public Member Functions | |
| SDLMouseProvider (const Graphics::IRenderer *renderer) | |
| virtual std::array< bool, MouseButton::MouseButtonsCount > | GetState (float *x, float *y) const override |
| 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. | |
Implementation of IMouseProvider that uses SDL_GetMouseState and SDL_RenderCoordinatesFromWindow to retrieve mouse data.
|
overridevirtual |
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. |
Implements Mochi::Input::IMouseProvider.