From ca8fe279540ccfb22031e92b17c0456c627a0fd4 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Thu, 12 Nov 2020 04:16:04 -0800 Subject: [PATCH] libretro: Add analog axis scale toggle --- .../libretro_host_interface.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index d47f7981b..ffb65c747 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -457,7 +457,7 @@ void LibretroHostInterface::OnSystemDestroyed() m_using_hardware_renderer = false; } -static std::array s_option_definitions = {{ +static std::array s_option_definitions = {{ {"duckstation_Console.Region", "Console Region", "Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.", @@ -723,6 +723,12 @@ static std::array s_option_definitions = {{ "Allows you to use the analog sticks to control the d-pad in digital mode, as well as the buttons.", {{"true", "Enabled"}, {"false", "Disabled"}}, "false"}, + {"duckstation_Controller1.AxisScale", + "Controller 1 Analog Axis Scale", + "Sets the analog stick axis scaling factor.", + {{"1.00f", "1.00"}, {"1.40f", "1.40"}}, + "1.00f" + }, {"duckstation_Controller2.Type", "Controller 2 Type", "Sets the type of controller for Slot 2.", @@ -743,6 +749,12 @@ static std::array s_option_definitions = {{ "Allows you to use the analog sticks to control the d-pad in digital mode, as well as the buttons.", {{"true", "Enabled"}, {"false", "Disabled"}}, "false"}, + {"duckstation_Controller2.AxisScale", + "Controller 2 Analog Axis Scale", + "Sets the analog stick axis scaling factor.", + {{"1.00f", "1.00"}, {"1.40f", "1.40"}}, + "1.00f" + }, {"duckstation_Display.ShowOSDMessages", "Display OSD Messages", "Shows on-screen messages generated by the core.",