Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Public Member Functions | Private Attributes | List of all members
ControllerHandler Class Reference

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...
 

Detailed Description

The input handler for joysticks.

Constructor & Destructor Documentation

ControllerHandler::ControllerHandler ( )

The constructor.

Verifies if there is a joystick present.

Member Function Documentation

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.

Parameters
sdlEvent_: The SDL internal event structure.

Member Data Documentation

SDL_GameController* ControllerHandler::gameController
private

Pointer to the controller.


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