You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
471 B
23 lines
471 B
|
7 years ago
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <SDL.h>
|
||
|
|
#include "controls/controller_buttons.h"
|
||
|
|
|
||
|
|
#ifndef USE_SDL1
|
||
|
|
namespace dvl {
|
||
|
|
|
||
|
|
ControllerButton GameControllerToControllerButton(const SDL_Event &event);
|
||
|
|
|
||
|
|
bool IsGameControllerButtonPressed(ControllerButton button);
|
||
|
|
|
||
|
|
bool ProcessGameControllerAxisMotion(const SDL_Event &event);
|
||
|
|
|
||
|
|
SDL_GameController *CurrentGameController();
|
||
|
|
|
||
|
|
// Must be called after InitJoystick().
|
||
|
|
void InitGameController();
|
||
|
|
|
||
|
|
} // namespace dvl
|
||
|
|
#endif
|