summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-19 04:06:11 +0200
committerGitHub <noreply@github.com>2018-06-19 04:06:11 +0200
commit0d8ae773f1801d689ae0dec03a6f563de5411b88 (patch)
treec7c1f6128575583491a2f32dc3845a3eecd04a77 /src/core/hle
parentMerge pull request #573 from Subv/shader_imm (diff)
parentNarrow down filter of layout configs (diff)
downloadyuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.tar
yuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.tar.gz
yuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.tar.bz2
yuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.tar.lz
yuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.tar.xz
yuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.tar.zst
yuzu-0d8ae773f1801d689ae0dec03a6f563de5411b88.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/hid/hid.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 85ca4bf06..2696a8bf0 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -84,6 +84,10 @@ private:
for (size_t controller = 0; controller < mem.controllers.size(); controller++) {
for (int index = 0; index < HID_NUM_LAYOUTS; index++) {
+ // TODO(DarkLordZach): Is this layout/controller config actually invalid?
+ if (controller == Controller_Handheld && index == Layout_Single)
+ continue;
+
ControllerLayout& layout = mem.controllers[controller].layouts[index];
layout.header.num_entries = HID_NUM_ENTRIES;
layout.header.max_entry_index = HID_NUM_ENTRIES - 1;