瀏覽代碼

core/hid: Add missing controller type

german77 4 年之前
父節點
當前提交
7347cdb651
共有 1 個文件被更改,包括 2 次插入0 次删除
  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: