mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #3033 from JosJuice/stick-names
Use official names for GameCube controller sticks
This commit is contained in:
@ -167,7 +167,7 @@ $NES Balloon Fight - P2 Infinite Lives (donny2112)
|
|||||||
$NES Clu Clu Land - P1 Infinite Lives (donny2112)
|
$NES Clu Clu Land - P1 Infinite Lives (donny2112)
|
||||||
01527EEE 08000000
|
01527EEE 08000000
|
||||||
01659020 00000009
|
01659020 00000009
|
||||||
$NES Clu Clu Land - Max out Clock (C-stick Right) (donny2112)
|
$NES Clu Clu Land - Max out Clock (C Stick Right) (donny2112)
|
||||||
01523F59 08000000
|
01523F59 08000000
|
||||||
BD2F5408 00010000
|
BD2F5408 00010000
|
||||||
03658FCE 00000999
|
03658FCE 00000999
|
||||||
@ -175,7 +175,7 @@ BD2F5408 00010000
|
|||||||
$NES Clu Clu Land D - P1 Infinite Lives (donny2112)
|
$NES Clu Clu Land D - P1 Infinite Lives (donny2112)
|
||||||
01527EEE 08000000
|
01527EEE 08000000
|
||||||
01659020 00000009
|
01659020 00000009
|
||||||
$NES Clu Clu Land D - Max out Clock (C-stick Right) (donny2112)
|
$NES Clu Clu Land D - Max out Clock (C Stick Right) (donny2112)
|
||||||
01526C12 08000000
|
01526C12 08000000
|
||||||
BD2F5408 00010000
|
BD2F5408 00010000
|
||||||
03658FC6 00000999
|
03658FC6 00000999
|
||||||
@ -183,7 +183,7 @@ BD2F5408 00010000
|
|||||||
$NES Donkey Kong - P1 Infinite Lives (donny2112)
|
$NES Donkey Kong - P1 Infinite Lives (donny2112)
|
||||||
01523F81 08000000
|
01523F81 08000000
|
||||||
01658FF5 00000009
|
01658FF5 00000009
|
||||||
$NES Donkey Kong - Jump to get Hammer (Hold A+C-stick Right) (donny2112)
|
$NES Donkey Kong - Jump to get Hammer (Hold A + C Stick Right) (donny2112)
|
||||||
015246D9 08000000
|
015246D9 08000000
|
||||||
BD2F5408 00810000
|
BD2F5408 00810000
|
||||||
01659040 00000001
|
01659040 00000001
|
||||||
@ -237,7 +237,7 @@ $NES Legend of Zelda - Have Magical Shield (donny2112)
|
|||||||
$NES Legend of Zelda - Max Hearts/Invincibility (donny2112)
|
$NES Legend of Zelda - Max Hearts/Invincibility (donny2112)
|
||||||
01521605 08000000
|
01521605 08000000
|
||||||
0165960F 000000FF
|
0165960F 000000FF
|
||||||
$NES Legend of Zelda - Freeze Enemies (C-stick Left) (donny2112)
|
$NES Legend of Zelda - Freeze Enemies (C Stick Left) (donny2112)
|
||||||
01527C62 08000000
|
01527C62 08000000
|
||||||
BD2F5408 00020000
|
BD2F5408 00020000
|
||||||
0165960C 00000001
|
0165960C 00000001
|
||||||
|
@ -319,10 +319,10 @@ C225910C 00000025
|
|||||||
C022C9E8 00000000
|
C022C9E8 00000000
|
||||||
|
|
||||||
# Gameplay Codes
|
# Gameplay Codes
|
||||||
$Normal C-Stick Functionality in Singleplayer Modes [Zauron]
|
$Normal C Stick Functionality in Singleplayer Modes [Zauron]
|
||||||
0416AB64 60000000
|
0416AB64 60000000
|
||||||
|
|
||||||
$Normal C-Stick Functionality in Develop Mode [Magus, Achilles]
|
$Normal C Stick Functionality in Develop Mode [Magus, Achilles]
|
||||||
*Does not work with Nana
|
*Does not work with Nana
|
||||||
0406AD38 38000000
|
0406AD38 38000000
|
||||||
04030024 38000000
|
04030024 38000000
|
||||||
|
@ -40,10 +40,10 @@ $Spoof Controller Plugins (P4) [Achilles]
|
|||||||
04375F24 38000001
|
04375F24 38000001
|
||||||
|
|
||||||
# Gameplay Codes
|
# Gameplay Codes
|
||||||
$Normal C-Stick Functionality in Singleplayer Modes [Zauron, Standardtoaster]
|
$Normal C Stick Functionality in Singleplayer Modes [Zauron, Standardtoaster]
|
||||||
0416B18C 60000000
|
0416B18C 60000000
|
||||||
|
|
||||||
$Normal C-Stick Functionality in Develop Mode [Magus, Achilles]
|
$Normal C Stick Functionality in Develop Mode [Magus, Achilles]
|
||||||
*Does not work with Nana
|
*Does not work with Nana
|
||||||
0406AE48 38000000
|
0406AE48 38000000
|
||||||
040300A4 38000000
|
040300A4 38000000
|
||||||
|
@ -20,7 +20,7 @@ $Boot to Character Select [Dan Salvato]
|
|||||||
$Debug Menu
|
$Debug Menu
|
||||||
0422D638 38000006
|
0422D638 38000006
|
||||||
|
|
||||||
$C-Stick in Single Player [Zauron]
|
$C Stick in Single Player [Zauron]
|
||||||
0416B480 60000000
|
0416B480 60000000
|
||||||
|
|
||||||
$Disable Peach's Castle Bullets [Zauron]
|
$Disable Peach's Castle Bullets [Zauron]
|
||||||
@ -144,11 +144,11 @@ $True Special Message Delete [JMC47]
|
|||||||
[Gecko]
|
[Gecko]
|
||||||
# General Codes
|
# General Codes
|
||||||
$Netplay Community Settings
|
$Netplay Community Settings
|
||||||
*Boot to CSS, unlock everything, 4 stock 8 min friendly fire on, trophy messages off,
|
*Boot to CSS, unlock everything, 4 stock 8 minute friendly fire on, trophy messages off,
|
||||||
*L+R+A+Start during stage load returns to CSS, name tags don't reset on close or exit,
|
*L+R+A+Start during stage load returns to CSS, name tags don't reset on close or exit,
|
||||||
*L-cancel % on results screen, normal c-stick functionality in 1P modes,
|
*L-cancel % on results screen, normal C Stick functionality in 1P modes,
|
||||||
*Stage striking, A+B salty runback, unrestricted pause camera, c-stick pause camera translation,
|
*Stage striking, A+B salty runback, unrestricted pause camera, C Stick pause camera translation,
|
||||||
*Normal c-stick functionality in develop mode, debug menu access and set to English,
|
*Normal C Stick functionality in develop mode, debug menu access and set to English,
|
||||||
*Universal debug menu control, leaving debug menu loads CSS, 20XXTE neutral spawns
|
*Universal debug menu control, leaving debug menu loads CSS, 20XXTE neutral spawns
|
||||||
0445BF28 FFFFFFFF
|
0445BF28 FFFFFFFF
|
||||||
0445BF2C FFFFFFFF
|
0445BF2C FFFFFFFF
|
||||||
@ -543,10 +543,10 @@ C223C5A0 0000000F
|
|||||||
60000000 00000000
|
60000000 00000000
|
||||||
|
|
||||||
# Gameplay Codes
|
# Gameplay Codes
|
||||||
$Normal C-Stick Functionality in Singleplayer Modes [Zauron]
|
$Normal C Stick Functionality in Singleplayer Modes [Zauron]
|
||||||
0416B480 60000000
|
0416B480 60000000
|
||||||
|
|
||||||
$Normal C-Stick Functionality in Develop Mode [Magus, Achilles]
|
$Normal C Stick Functionality in Develop Mode [Magus, Achilles]
|
||||||
*Does not work with Nana
|
*Does not work with Nana
|
||||||
0406AE90 38000000
|
0406AE90 38000000
|
||||||
040300A4 38000000
|
040300A4 38000000
|
||||||
|
@ -222,7 +222,7 @@ C225AEF4 00000025
|
|||||||
C022CA40 00000000
|
C022CA40 00000000
|
||||||
|
|
||||||
# Gameplay Codes
|
# Gameplay Codes
|
||||||
$Normal C-Stick Functionality in Singleplayer Modes [Zauron]
|
$Normal C Stick Functionality in Singleplayer Modes [Zauron]
|
||||||
0416BE50 60000000
|
0416BE50 60000000
|
||||||
|
|
||||||
$Skip Result Screen & KO Star Count Equals Placement [Sham Rock]
|
$Skip Result Screen & KO Star Count Equals Placement [Sham Rock]
|
||||||
|
@ -31,28 +31,28 @@ $No 4th+ Places
|
|||||||
$No Top Speed/No Shifting Needed
|
$No Top Speed/No Shifting Needed
|
||||||
3A1EA826 00000020
|
3A1EA826 00000020
|
||||||
04205CC0 00000000
|
04205CC0 00000000
|
||||||
$C-Stick Sends Car 1 Back To Start
|
$C Stick Sends Car 1 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
00206704 00000000
|
00206704 00000000
|
||||||
$C-Stick Sends Car 2 Back To Start
|
$C Stick Sends Car 2 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
00207264 00000000
|
00207264 00000000
|
||||||
$C-Stick Sends Car 3 Back To Start
|
$C Stick Sends Car 3 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
00207DC4 00000000
|
00207DC4 00000000
|
||||||
$C-Stick Sends Car 4 Back To Start
|
$C Stick Sends Car 4 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
00208924 00000000
|
00208924 00000000
|
||||||
$C-Stick Sends Car 5 Back To Start
|
$C Stick Sends Car 5 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
00209484 00000000
|
00209484 00000000
|
||||||
$C-Stick Sends Car 6 Back To Start
|
$C Stick Sends Car 6 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
00209FE4 00000000
|
00209FE4 00000000
|
||||||
$C-Stick Sends Car 7 Back To Start
|
$C Stick Sends Car 7 Back To Start
|
||||||
3A1EA826 00000080
|
3A1EA826 00000080
|
||||||
0020AB44 00000000
|
0020AB44 00000000
|
||||||
$C-Stick Sends All Car Back To Start
|
$C Stick Sends All Cars Back To Start
|
||||||
7A1EA826 00000080
|
7A1EA826 00000080
|
||||||
00000000 80206704
|
00000000 80206704
|
||||||
00000000 00070B60
|
00000000 00070B60
|
||||||
|
@ -94,20 +94,20 @@
|
|||||||
<string name="button_x">Xボタン</string>
|
<string name="button_x">Xボタン</string>
|
||||||
<string name="button_y">Yボタン</string>
|
<string name="button_y">Yボタン</string>
|
||||||
<string name="button_z">Zボタン</string>
|
<string name="button_z">Zボタン</string>
|
||||||
<string name="dpad_up">D-Pad: ↑</string>
|
<string name="dpad_up">十字キー: ↑</string>
|
||||||
<string name="dpad_down">D-Pad: ↓</string>
|
<string name="dpad_down">十字キー: ↓</string>
|
||||||
<string name="dpad_left">D-Pad: ←</string>
|
<string name="dpad_left">十字キー: ←</string>
|
||||||
<string name="dpad_right">D-Pad: →</string>
|
<string name="dpad_right">十字キー: →</string>
|
||||||
<string name="main_stick_up">コントロールスティック: ↑</string>
|
<string name="main_stick_up">コントロールスティック: ↑</string>
|
||||||
<string name="main_stick_down">コントロールスティック: ↓</string>
|
<string name="main_stick_down">コントロールスティック: ↓</string>
|
||||||
<string name="main_stick_left">コントロールスティック: ←</string>
|
<string name="main_stick_left">コントロールスティック: ←</string>
|
||||||
<string name="main_stick_right">コントロールスティック: →</string>
|
<string name="main_stick_right">コントロールスティック: →</string>
|
||||||
<string name="c_stick_up">C-スティック: ↑</string>
|
<string name="c_stick_up">Cスティック: ↑</string>
|
||||||
<string name="c_stick_down">C-スティック: ↓</string>
|
<string name="c_stick_down">Cスティック: ↓</string>
|
||||||
<string name="c_stick_left">C-スティック: ←</string>
|
<string name="c_stick_left">Cスティック: ←</string>
|
||||||
<string name="c_stick_right">C-スティック: →</string>
|
<string name="c_stick_right">Cスティック: →</string>
|
||||||
<string name="trigger_left">左のトリガー</string>
|
<string name="trigger_left">Lトリガー</string>
|
||||||
<string name="trigger_right">右のトリガー</string>
|
<string name="trigger_right">Rトリガー</string>
|
||||||
<!-- Wiimote (+ extension) only buttons -->
|
<!-- Wiimote (+ extension) only buttons -->
|
||||||
<string name="button_one">ボタン1</string>
|
<string name="button_one">ボタン1</string>
|
||||||
<string name="button_two">ボタン2</string>
|
<string name="button_two">ボタン2</string>
|
||||||
|
@ -100,10 +100,10 @@
|
|||||||
<string name="dpad_down">D-Pad Down</string>
|
<string name="dpad_down">D-Pad Down</string>
|
||||||
<string name="dpad_left">D-Pad Left</string>
|
<string name="dpad_left">D-Pad Left</string>
|
||||||
<string name="dpad_right">D-Pad Right</string>
|
<string name="dpad_right">D-Pad Right</string>
|
||||||
<string name="main_stick_up">Main Stick Up</string>
|
<string name="main_stick_up">Control Stick Up</string>
|
||||||
<string name="main_stick_down">Main Stick Down</string>
|
<string name="main_stick_down">Control Stick Down</string>
|
||||||
<string name="main_stick_left">Main Stick Left</string>
|
<string name="main_stick_left">Control Stick Left</string>
|
||||||
<string name="main_stick_right">Main Stick Right</string>
|
<string name="main_stick_right">Control Stick Right</string>
|
||||||
<string name="c_stick_up">C Stick Up</string>
|
<string name="c_stick_up">C Stick Up</string>
|
||||||
<string name="c_stick_down">C Stick Down</string>
|
<string name="c_stick_down">C Stick Down</string>
|
||||||
<string name="c_stick_left">C Stick Left</string>
|
<string name="c_stick_left">C Stick Left</string>
|
||||||
|
@ -60,8 +60,8 @@ GCPad::GCPad(const unsigned int index) : m_index(index)
|
|||||||
m_buttons->controls.emplace_back(new ControlGroup::Input(named_buttons[i]));
|
m_buttons->controls.emplace_back(new ControlGroup::Input(named_buttons[i]));
|
||||||
|
|
||||||
// sticks
|
// sticks
|
||||||
groups.emplace_back(m_main_stick = new AnalogStick(_trans("Main Stick"), DEFAULT_PAD_STICK_RADIUS));
|
groups.emplace_back(m_main_stick = new AnalogStick("Main Stick", _trans("Control Stick"), DEFAULT_PAD_STICK_RADIUS));
|
||||||
groups.emplace_back(m_c_stick = new AnalogStick(_trans("C-Stick"), DEFAULT_PAD_STICK_RADIUS));
|
groups.emplace_back(m_c_stick = new AnalogStick("C-Stick", _trans("C Stick"), DEFAULT_PAD_STICK_RADIUS));
|
||||||
|
|
||||||
// triggers
|
// triggers
|
||||||
groups.emplace_back(m_triggers = new MixedTriggers(_trans("Triggers")));
|
groups.emplace_back(m_triggers = new MixedTriggers(_trans("Triggers")));
|
||||||
@ -151,7 +151,7 @@ void GCPad::LoadDefaults(const ControllerInterface& ciface)
|
|||||||
set_control(m_dpad, 2, "F"); // Left
|
set_control(m_dpad, 2, "F"); // Left
|
||||||
set_control(m_dpad, 3, "H"); // Right
|
set_control(m_dpad, 3, "H"); // Right
|
||||||
|
|
||||||
// C-Stick
|
// C Stick
|
||||||
set_control(m_c_stick, 0, "I"); // Up
|
set_control(m_c_stick, 0, "I"); // Up
|
||||||
set_control(m_c_stick, 1, "K"); // Down
|
set_control(m_c_stick, 1, "K"); // Down
|
||||||
set_control(m_c_stick, 2, "J"); // Left
|
set_control(m_c_stick, 2, "J"); // Left
|
||||||
@ -159,7 +159,7 @@ void GCPad::LoadDefaults(const ControllerInterface& ciface)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
set_control(m_c_stick, 4, "LCONTROL"); // Modifier
|
set_control(m_c_stick, 4, "LCONTROL"); // Modifier
|
||||||
|
|
||||||
// Main Stick
|
// Control Stick
|
||||||
set_control(m_main_stick, 0, "UP"); // Up
|
set_control(m_main_stick, 0, "UP"); // Up
|
||||||
set_control(m_main_stick, 1, "DOWN"); // Down
|
set_control(m_main_stick, 1, "DOWN"); // Down
|
||||||
set_control(m_main_stick, 2, "LEFT"); // Left
|
set_control(m_main_stick, 2, "LEFT"); // Left
|
||||||
@ -169,7 +169,7 @@ void GCPad::LoadDefaults(const ControllerInterface& ciface)
|
|||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
set_control(m_c_stick, 4, "Left Control"); // Modifier
|
set_control(m_c_stick, 4, "Left Control"); // Modifier
|
||||||
|
|
||||||
// Main Stick
|
// Control Stick
|
||||||
set_control(m_main_stick, 0, "Up Arrow"); // Up
|
set_control(m_main_stick, 0, "Up Arrow"); // Up
|
||||||
set_control(m_main_stick, 1, "Down Arrow"); // Down
|
set_control(m_main_stick, 1, "Down Arrow"); // Down
|
||||||
set_control(m_main_stick, 2, "Left Arrow"); // Left
|
set_control(m_main_stick, 2, "Left Arrow"); // Left
|
||||||
@ -180,7 +180,7 @@ void GCPad::LoadDefaults(const ControllerInterface& ciface)
|
|||||||
|
|
||||||
set_control(m_c_stick, 4, "Control_L"); // Modifier
|
set_control(m_c_stick, 4, "Control_L"); // Modifier
|
||||||
|
|
||||||
// Main Stick
|
// Control Stick
|
||||||
set_control(m_main_stick, 0, "Up"); // Up
|
set_control(m_main_stick, 0, "Up"); // Up
|
||||||
set_control(m_main_stick, 1, "Down"); // Down
|
set_control(m_main_stick, 1, "Down"); // Down
|
||||||
set_control(m_main_stick, 2, "Left"); // Left
|
set_control(m_main_stick, 2, "Left"); // Left
|
||||||
|
@ -946,7 +946,7 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow
|
|||||||
{
|
{
|
||||||
ControlGroupBox* control_group_box = new ControlGroupBox(group.get(), parent, eventsink);
|
ControlGroupBox* control_group_box = new ControlGroupBox(group.get(), parent, eventsink);
|
||||||
wxStaticBoxSizer *control_group =
|
wxStaticBoxSizer *control_group =
|
||||||
new wxStaticBoxSizer(wxVERTICAL, parent, wxGetTranslation(StrToWxStr(group->name)));
|
new wxStaticBoxSizer(wxVERTICAL, parent, wxGetTranslation(StrToWxStr(group->ui_name)));
|
||||||
control_group->Add(control_group_box);
|
control_group->Add(control_group_box);
|
||||||
|
|
||||||
const size_t grp_size = group->controls.size() + group->settings.size();
|
const size_t grp_size = group->controls.size() + group->settings.size();
|
||||||
|
@ -143,7 +143,11 @@ void ControllerEmu::SaveConfig(IniFile::Section *sec, const std::string& base)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ControllerEmu::AnalogStick::AnalogStick(const char* const _name, ControlState default_radius)
|
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)
|
for (auto& named_direction : named_directions)
|
||||||
controls.emplace_back(new Input(named_direction));
|
controls.emplace_back(new Input(named_direction));
|
||||||
|
@ -145,13 +145,17 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ControlGroup(const std::string& _name, const unsigned int _type = GROUP_TYPE_OTHER) : name(_name), type(_type) {}
|
ControlGroup(const std::string& _name, const unsigned int _type = GROUP_TYPE_OTHER)
|
||||||
|
: name(_name), ui_name(_name), type(_type) {}
|
||||||
|
ControlGroup(const std::string& _name, const std::string& _ui_name, const unsigned int _type = GROUP_TYPE_OTHER)
|
||||||
|
: name(_name), ui_name(_ui_name), type(_type) {}
|
||||||
virtual ~ControlGroup() {}
|
virtual ~ControlGroup() {}
|
||||||
|
|
||||||
virtual void LoadConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" );
|
virtual void LoadConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" );
|
||||||
virtual void SaveConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" );
|
virtual void SaveConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" );
|
||||||
|
|
||||||
const std::string name;
|
const std::string name;
|
||||||
|
const std::string ui_name;
|
||||||
const unsigned int type;
|
const unsigned int type;
|
||||||
|
|
||||||
std::vector<std::unique_ptr<Control>> controls;
|
std::vector<std::unique_ptr<Control>> controls;
|
||||||
@ -164,6 +168,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
// The GameCube controller and Wiimote attachments have a different default radius
|
// The GameCube controller and Wiimote attachments have a different default radius
|
||||||
AnalogStick(const char* const _name, ControlState default_radius);
|
AnalogStick(const char* const _name, ControlState default_radius);
|
||||||
|
AnalogStick(const char* const _name, const char* const _ui_name, ControlState default_radius);
|
||||||
|
|
||||||
void GetState(ControlState* const x, ControlState* const y)
|
void GetState(ControlState* const x, ControlState* const y)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user