summaryrefslogtreecommitdiffstats
path: root/src/yuzu/configuration/configure_input_player.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-11-28 03:05:45 +0100
committergerman77 <juangerman-13@hotmail.com>2021-11-28 03:24:37 +0100
commit51df96b7c0ac7086b26fa766e87e18749e0395b1 (patch)
tree077ed5c0ccc3147e6fbf0c154e8ef99cc6ec31ec /src/yuzu/configuration/configure_input_player.cpp
parentMerge pull request #7255 from german77/kraken (diff)
downloadyuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.tar
yuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.tar.gz
yuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.tar.bz2
yuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.tar.lz
yuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.tar.xz
yuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.tar.zst
yuzu-51df96b7c0ac7086b26fa766e87e18749e0395b1.zip
Diffstat (limited to 'src/yuzu/configuration/configure_input_player.cpp')
-rw-r--r--src/yuzu/configuration/configure_input_player.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp
index ec071d6ec..16284d5a6 100644
--- a/src/yuzu/configuration/configure_input_player.cpp
+++ b/src/yuzu/configuration/configure_input_player.cpp
@@ -947,6 +947,40 @@ void ConfigureInputPlayer::SetConnectableControllers() {
Core::HID::NpadStyleIndex::GameCube);
ui->comboControllerType->addItem(tr("GameCube Controller"));
}
+
+ // Disable all unsupported controllers
+ if (!Settings::values.enable_all_controllers) {
+ return;
+ }
+ if (enable_all || npad_style_set.palma == 1) {
+ index_controller_type_pairs.emplace_back(ui->comboControllerType->count(),
+ Core::HID::NpadStyleIndex::Pokeball);
+ ui->comboControllerType->addItem(tr("Poke Ball Plus"));
+ }
+
+ if (enable_all || npad_style_set.lark == 1) {
+ index_controller_type_pairs.emplace_back(ui->comboControllerType->count(),
+ Core::HID::NpadStyleIndex::NES);
+ ui->comboControllerType->addItem(tr("NES Controller"));
+ }
+
+ if (enable_all || npad_style_set.lucia == 1) {
+ index_controller_type_pairs.emplace_back(ui->comboControllerType->count(),
+ Core::HID::NpadStyleIndex::SNES);
+ ui->comboControllerType->addItem(tr("SNES Controller"));
+ }
+
+ if (enable_all || npad_style_set.lagoon == 1) {
+ index_controller_type_pairs.emplace_back(ui->comboControllerType->count(),
+ Core::HID::NpadStyleIndex::N64);
+ ui->comboControllerType->addItem(tr("N64 Controller"));
+ }
+
+ if (enable_all || npad_style_set.lager == 1) {
+ index_controller_type_pairs.emplace_back(ui->comboControllerType->count(),
+ Core::HID::NpadStyleIndex::SegaGenesis);
+ ui->comboControllerType->addItem(tr("Sega Genesis"));
+ }
};
if (!is_powered_on) {