diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-16 06:40:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 06:40:35 +0200 |
commit | 0a5bc8ec14619080cabe3168a1b82c6da4a63a0f (patch) | |
tree | d35eebf5da42ebbe24d521c90d2139c94b68f8e8 /src/input_common/sdl/sdl_impl.h | |
parent | Merge pull request #6199 from lioncash/log-ns (diff) | |
parent | InputCommon: Name properly xbox 360 and one controllers, Fix mappings for Nintendo Pro controllers (diff) | |
download | yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.tar yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.tar.gz yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.tar.bz2 yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.tar.lz yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.tar.xz yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.tar.zst yuzu-0a5bc8ec14619080cabe3168a1b82c6da4a63a0f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/sdl/sdl_impl.h | 4 |
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; |