diff options
author | Martino Fontana <tinozzo123@tutanota.com> | 2023-07-07 21:59:47 +0200 |
---|---|---|
committer | Martino Fontana <tinozzo123@tutanota.com> | 2023-07-07 21:59:47 +0200 |
commit | aa882cdaa84dedc5ad4187f36dca08bb86e67c4e (patch) | |
tree | 0d159d2a34635e5b75da66f4222865f5bf34f8fd /src/input_common/drivers/sdl_driver.h | |
parent | d6a9ed32e6a8315fc5aef0da70de31256fc86a2b (diff) |
input_common: set `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` to 0
This allows to share the mappings between Nintendo and non-Nintendo controllers.
Breaks the controller configuration for existing users who are using a Nintendo controller.
(Documentation of the hint https://github.com/libsdl-org/SDL/blob/92b3c53c92971e685254fd89f89ce6bde8cea60e/include/SDL_hints.h#L512-L532)
Diffstat (limited to 'src/input_common/drivers/sdl_driver.h')
-rw-r--r-- | src/input_common/drivers/sdl_driver.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/input_common/drivers/sdl_driver.h b/src/input_common/drivers/sdl_driver.h index ffde169b35..fcba4e3c63 100644 --- a/src/input_common/drivers/sdl_driver.h +++ b/src/input_common/drivers/sdl_driver.h @@ -100,11 +100,8 @@ private: int axis_y, float offset_x, float offset_y) const; - /// Returns the default button bindings list for generic controllers - ButtonBindings GetDefaultButtonBinding() const; - - /// Returns the default button bindings list for nintendo controllers - ButtonBindings GetNintendoButtonBinding(const std::shared_ptr<SDLJoystick>& joystick) const; + /// Returns the default button bindings list + ButtonBindings GetDefaultButtonBinding(const std::shared_ptr<SDLJoystick>& joystick) const; /// Returns the button mappings from a single controller ButtonMapping GetSingleControllerMapping(const std::shared_ptr<SDLJoystick>& joystick, |