From d9db1d125eedc57654310131f8f8bf6d3431fabf Mon Sep 17 00:00:00 2001
From: german77 <juangerman-13@hotmail.com>
Date: Sat, 27 Mar 2021 19:07:59 -0500
Subject: InputCommon: Name properly xbox 360 and one controllers, Fix mappings
 for Nintendo Pro controllers

---
 src/input_common/sdl/sdl_impl.h | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/input_common/sdl/sdl_impl.h')

diff --git a/src/input_common/sdl/sdl_impl.h b/src/input_common/sdl/sdl_impl.h
index 08044b00d6..8b7363f56b 100644
--- a/src/input_common/sdl/sdl_impl.h
+++ b/src/input_common/sdl/sdl_impl.h
@@ -14,6 +14,7 @@
 #include "input_common/sdl/sdl.h"
 
 union SDL_Event;
+using SDL_GameController = struct _SDL_GameController;
 using SDL_Joystick = struct _SDL_Joystick;
 using SDL_JoystickID = s32;
 
@@ -64,6 +65,9 @@ private:
     /// Needs to be called before SDL_QuitSubSystem.
     void CloseJoysticks();
 
+    /// Returns a custom name for specific controllers because the default name is not correct
+    std::string GetControllerName(SDL_GameController* controller) const;
+
     // Set to true if SDL supports game controller subsystem
     bool has_gamecontroller = false;
 
-- 
cgit v1.2.3-70-g09d2