summaryrefslogtreecommitdiffstats
path: root/src/input_common/sdl/sdl_impl.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-03-28 01:07:59 +0100
committergerman77 <juangerman-13@hotmail.com>2021-03-31 04:40:36 +0200
commitd9db1d125eedc57654310131f8f8bf6d3431fabf (patch)
tree2949c8f15ce02acfdadbfdd73ac5469315859ae1 /src/input_common/sdl/sdl_impl.h
parentMerge pull request #6114 from Morph1984/friend-log (diff)
downloadyuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.tar
yuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.tar.gz
yuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.tar.bz2
yuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.tar.lz
yuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.tar.xz
yuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.tar.zst
yuzu-d9db1d125eedc57654310131f8f8bf6d3431fabf.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/sdl/sdl_impl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_common/sdl/sdl_impl.h b/src/input_common/sdl/sdl_impl.h
index 08044b00d..8b7363f56 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;