|
MochiEngine
|
#include <IGamepadProvider.h>
Public Member Functions | |
| virtual GamepadData | GetData (const unsigned int &player) const =0 |
| Gets data of the gamepad in the selected slot for this frame. | |
| virtual bool | HasGamepad (const unsigned int &player) const =0 |
| Checks if there is a gamepad connected in the specified player slot. | |
Interface used to get per-frame data of the connected gamepads.
|
pure virtual |
Gets data of the gamepad in the selected slot for this frame.
| player | The slot to get the data from. |
Implemented in Mochi::Input::DummyGamepadProvider, and Mochi::Input::SDLGamepadProvider.
|
pure virtual |
Checks if there is a gamepad connected in the specified player slot.
| player | The slot to check. |
Implemented in Mochi::Input::DummyGamepadProvider, and Mochi::Input::SDLGamepadProvider.