diff options
author | bunnei <bunneidev@gmail.com> | 2021-11-28 09:54:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 09:54:29 +0100 |
commit | be56587ad7cd56ef8254d552986c75436396bf30 (patch) | |
tree | 077ed5c0ccc3147e6fbf0c154e8ef99cc6ec31ec /src/core | |
parent | Merge pull request #7255 from german77/kraken (diff) | |
parent | settings: Add debug setting to enable all controllers (diff) | |
download | yuzu-be56587ad7cd56ef8254d552986c75436396bf30.tar yuzu-be56587ad7cd56ef8254d552986c75436396bf30.tar.gz yuzu-be56587ad7cd56ef8254d552986c75436396bf30.tar.bz2 yuzu-be56587ad7cd56ef8254d552986c75436396bf30.tar.lz yuzu-be56587ad7cd56ef8254d552986c75436396bf30.tar.xz yuzu-be56587ad7cd56ef8254d552986c75436396bf30.tar.zst yuzu-be56587ad7cd56ef8254d552986c75436396bf30.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hid/emulated_controller.cpp | 20 | ||||
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index 06ae41c3e..466ff5542 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -27,6 +27,16 @@ NpadStyleIndex EmulatedController::MapSettingsTypeToNPad(Settings::ControllerTyp return NpadStyleIndex::Handheld; case Settings::ControllerType::GameCube: return NpadStyleIndex::GameCube; + case Settings::ControllerType::Pokeball: + return NpadStyleIndex::Pokeball; + case Settings::ControllerType::NES: + return NpadStyleIndex::NES; + case Settings::ControllerType::SNES: + return NpadStyleIndex::SNES; + case Settings::ControllerType::N64: + return NpadStyleIndex::N64; + case Settings::ControllerType::SegaGenesis: + return NpadStyleIndex::SegaGenesis; default: return NpadStyleIndex::ProController; } @@ -46,6 +56,16 @@ Settings::ControllerType EmulatedController::MapNPadToSettingsType(NpadStyleInde return Settings::ControllerType::Handheld; case NpadStyleIndex::GameCube: return Settings::ControllerType::GameCube; + case NpadStyleIndex::Pokeball: + return Settings::ControllerType::Pokeball; + case NpadStyleIndex::NES: + return Settings::ControllerType::NES; + case NpadStyleIndex::SNES: + return Settings::ControllerType::SNES; + case NpadStyleIndex::N64: + return Settings::ControllerType::N64; + case NpadStyleIndex::SegaGenesis: + return Settings::ControllerType::SegaGenesis; default: return Settings::ControllerType::ProController; } diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index dd4d954aa..04b3a68c3 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -263,6 +263,10 @@ void Controller_NPad::OnInit() { style.fullkey.Assign(1); style.gamecube.Assign(1); style.palma.Assign(1); + style.lark.Assign(1); + style.lucia.Assign(1); + style.lagoon.Assign(1); + style.lager.Assign(1); hid_core.SetSupportedStyleTag(style); } |