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.
 
 
 
 
 
 

21 lines
461 B

#pragma once
// Joystick mappings for SDL1 and additional buttons on SDL2.
#include <SDL.h>
#include "controls/controller_buttons.h"
namespace dvl {
ControllerButton JoyButtonToControllerButton(const SDL_Event &event);
bool IsJoystickButtonPressed(ControllerButton button);
bool ProcessJoystickAxisMotion(const SDL_Event &event);
SDL_Joystick *CurrentJoystick();
int CurrentJoystickIndex();
void InitJoystick();
} // namespace dvl