diff options
author | german77 <juangerman-13@hotmail.com> | 2021-11-28 03:05:45 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2021-11-28 03:24:37 +0100 |
commit | 51df96b7c0ac7086b26fa766e87e18749e0395b1 (patch) | |
tree | 077ed5c0ccc3147e6fbf0c154e8ef99cc6ec31ec /src/core/hid | |
parent | Merge pull request #7255 from german77/kraken (diff) | |
download | yuzu-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/core/hid')
-rw-r--r-- | src/core/hid/emulated_controller.cpp | 20 |
1 files changed, 20 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; } |