gKit2 light
|
Public Member Functions | |
Gamepad (SDL_GameController *pad) | |
bool | connected () |
renvoie l'etat d'un gamepad. debranche ou pas. More... | |
int | button (const SDL_GameControllerButton b) |
renvoie l'etat d'un bouton. More... | |
void | clear_button (const SDL_GameControllerButton b) |
desactive un button. More... | |
float | axis (const SDL_GameControllerAxis a) |
renvoie la position d'un axe. More... | |
void | clear_axis (const SDL_GameControllerAxis a) |
re-initialise la position d'un axe. More... | |
Public Attributes | |
int | m_buttons [SDL_CONTROLLER_BUTTON_MAX] |
float | m_axis [SDL_CONTROLLER_AXIS_MAX] |
SDL_GameController * | m_pad |
Definition at line 8 of file gamepads.h.
bool Gamepad::connected | ( | ) |
renvoie l'etat d'un gamepad. debranche ou pas.
Definition at line 128 of file gamepads.cpp.
int Gamepad::button | ( | const SDL_GameControllerButton | b | ) |
renvoie l'etat d'un bouton.
Definition at line 133 of file gamepads.cpp.
void Gamepad::clear_button | ( | const SDL_GameControllerButton | b | ) |
desactive un button.
Definition at line 139 of file gamepads.cpp.
float Gamepad::axis | ( | const SDL_GameControllerAxis | a | ) |
renvoie la position d'un axe.
Definition at line 145 of file gamepads.cpp.
void Gamepad::clear_axis | ( | const SDL_GameControllerAxis | a | ) |
re-initialise la position d'un axe.
Definition at line 151 of file gamepads.cpp.