![]() |
Dauphine
0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
|
The input handler for joysticks. More...
#include <ControllerHandler.h>
Public Member Functions | |
| ControllerHandler () | |
| The constructor. More... | |
| void | handleInput (SDL_Event &sdlEvent_) |
| Handles controller the input. More... | |
Private Attributes | |
| SDL_GameController * | gameController |
| Pointer to the controller. More... | |
The input handler for joysticks.
| ControllerHandler::ControllerHandler | ( | ) |
The constructor.
Verifies if there is a joystick present.
| void ControllerHandler::handleInput | ( | SDL_Event & | sdlEvent_) |
Handles controller the input.
Detects the pending events, and simulates an appropriate KeyEvent by pushing one into a stack.
| sdlEvent_ | : The SDL internal event structure. |
|
private |
Pointer to the controller.
1.8.4