libretro: Add analog axis scale toggle

This commit is contained in:
Albert Liu 2020-11-12 04:16:04 -08:00
parent d87ab23fec
commit ca8fe27954

View file

@ -457,7 +457,7 @@ void LibretroHostInterface::OnSystemDestroyed()
m_using_hardware_renderer = false;
}
static std::array<retro_core_option_definition, 42> s_option_definitions = {{
static std::array<retro_core_option_definition, 44> 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<retro_core_option_definition, 42> 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<retro_core_option_definition, 42> 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.",