|
MochiEngine
|
Implementation of IGamepadProvider that uses SDL_GetGamepadAxis and SDL_GetGamepadButton to retrieve gamepad data. More...
#include <SDLGamepadProvider.h>
Public Member Functions | |
| SDLGamepadProvider (Event::EventBus *eventBus) | |
| virtual GamepadData | GetData (const unsigned int &player) const override |
| Gets data of the gamepad in the selected slot for this frame. | |
| virtual bool | HasGamepad (const unsigned int &player) const override |
| Checks if there is a gamepad connected in the specified player slot. | |
Implementation of IGamepadProvider that uses SDL_GetGamepadAxis and SDL_GetGamepadButton to retrieve gamepad data.
|
overridevirtual |
Gets data of the gamepad in the selected slot for this frame.
| player | The slot to get the data from. |
Implements Mochi::Input::IGamepadProvider.
|
overridevirtual |
Checks if there is a gamepad connected in the specified player slot.
| player | The slot to check. |
Implements Mochi::Input::IGamepadProvider.