Parcourir la source

Merge pull request #7518 from german77/is_npad_valid

core/hid: Add missing controller type
Morph il y a 4 ans
Parent
commit
fae07919af
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/core/hid/emulated_controller.cpp

+ 2 - 0
src/core/hid/emulated_controller.cpp

@@ -882,6 +882,8 @@ bool EmulatedController::IsControllerSupported() const {
     switch (npad_type) {
     case NpadStyleIndex::ProController:
         return supported_style_tag.fullkey;
+    case NpadStyleIndex::Handheld:
+        return supported_style_tag.handheld;
     case NpadStyleIndex::JoyconDual:
         return supported_style_tag.joycon_dual;
     case NpadStyleIndex::JoyconLeft: