mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-12 06:02:39 +00:00
Use official names for GameCube controller sticks
Main Stick is changed to Control Stick and C-Stick is changed to C Stick. A new ui_name variable is added to ControlGroup so that the UI strings in DolphinWX can be updated without breaking backwards compatibility with config INIs and other things that use names as IDs.
This commit is contained in:
parent
c0a89c3bf4
commit
cbd539eb3d
12 changed files with 57 additions and 48 deletions
Source/Core/InputCommon
|
@ -143,7 +143,11 @@ void ControllerEmu::SaveConfig(IniFile::Section *sec, const std::string& base)
|
|||
}
|
||||
|
||||
ControllerEmu::AnalogStick::AnalogStick(const char* const _name, ControlState default_radius)
|
||||
: ControlGroup(_name, GROUP_TYPE_STICK)
|
||||
: AnalogStick(_name, _name, GROUP_TYPE_STICK)
|
||||
{}
|
||||
|
||||
ControllerEmu::AnalogStick::AnalogStick(const char* const _name, const char* const _ui_name, ControlState default_radius)
|
||||
: ControlGroup(_name, _ui_name, GROUP_TYPE_STICK)
|
||||
{
|
||||
for (auto& named_direction : named_directions)
|
||||
controls.emplace_back(new Input(named_direction));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue