SDL: Use controller interface from frontend-common

This commit is contained in:
Connor McLaughlin
2020-02-16 00:15:14 +09:00
parent 6456c5d63d
commit 9ddb3a8c7a
2 changed files with 14 additions and 225 deletions

View File

@ -101,14 +101,6 @@ private:
void UpdateKeyboardControllerMapping();
bool HandleSDLKeyEventForController(const SDL_Event* event);
bool OpenGameController(int index);
bool CloseGameController(int index);
void CloseGameControllers();
void UpdateControllerControllerMapping();
void HandleSDLControllerAxisEventForController(const SDL_Event* event);
void HandleSDLControllerButtonEventForController(const SDL_Event* event);
void UpdateControllerRumble();
void DrawMainMenuBar();
void DrawQuickSettingsMenu();
void DrawDebugMenu();
@ -123,10 +115,6 @@ private:
KeyboardControllerActionMap m_keyboard_button_mapping;
std::map<int, ControllerData> m_sdl_controllers;
std::array<s32, SDL_CONTROLLER_AXIS_MAX> m_controller_axis_mapping{};
std::array<s32, SDL_CONTROLLER_BUTTON_MAX> m_controller_button_mapping{};
u32 m_update_settings_event_id = 0;
bool m_quit_request = false;