MochiEngine
Loading...
Searching...
No Matches
Mochi::Input::DummyMouseProvider Class Reference
Inheritance diagram for Mochi::Input::DummyMouseProvider:
Mochi::Input::IMouseProvider

Public Member Functions

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.

Member Function Documentation

◆ GetState()

virtual std::array< bool, MouseButton::MouseButtonsCount > Mochi::Input::DummyMouseProvider::GetState ( float * x,
float * y ) const
inlineoverridevirtual

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.

Parameters
xReference to a value that will be updated in the method with the X position.
yReference to a value that will be updated in the method with the Y position.
Returns
An array of booleans for each mouse button, up to InputCommons.h in the MouseButtons enum.

Implements Mochi::Input::IMouseProvider.


The documentation for this class was generated from the following file: