diff --git a/src/GamepadMapper.cpp b/src/GamepadMapper.cpp index 10b2b42..533a566 100644 --- a/src/GamepadMapper.cpp +++ b/src/GamepadMapper.cpp @@ -89,7 +89,7 @@ void GamepadMapper::set_mapped_button(GamepadButtons origin_button, GamepadButto m_gamepad_map[origin_button] = new_button; } -GamepadButtons GamepadMapper::mapped_button(int button) { +GamepadButtons GamepadMapper::mapped_button(GamepadButtons button) { return m_gamepad_map[button]; } diff --git a/src/GamepadMapper.hpp b/src/GamepadMapper.hpp index f272dbf..ec06223 100644 --- a/src/GamepadMapper.hpp +++ b/src/GamepadMapper.hpp @@ -55,7 +55,7 @@ public: GamepadButtons convert_nanogui_analog_axis(int axis); void set_mapped_button(GamepadButtons origin_button, GamepadButtons new_button); - GamepadButtons mapped_button(int origin_button); + GamepadButtons mapped_button(GamepadButtons origin_button); void set_combo_buttons(std::array buttons, GamepadCombo combo); std::array combo_buttons(GamepadCombo combo); diff --git a/src/ui/windows/InputSettingsWindow.cpp b/src/ui/windows/InputSettingsWindow.cpp index 05a5750..1f1d0ea 100644 --- a/src/ui/windows/InputSettingsWindow.cpp +++ b/src/ui/windows/InputSettingsWindow.cpp @@ -173,7 +173,7 @@ void InputSettingsWindow::reload_gamepad_input_settings() { } button_container->add