summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-19 15:07:34 -0400
committerGravatar Lioncash2018-07-19 15:07:36 -0400
commit95103a1b7b5ff0e20dc9507d1766918a60dc24c9 (patch)
tree2e6f818f2c3b2b31a6452566f5130d27b0021f54 /src/core
parentMerge pull request #713 from lioncash/filesys (diff)
downloadyuzu-95103a1b7b5ff0e20dc9507d1766918a60dc24c9.tar.gz
yuzu-95103a1b7b5ff0e20dc9507d1766918a60dc24c9.tar.xz
yuzu-95103a1b7b5ff0e20dc9507d1766918a60dc24c9.zip
hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts array
Gets rid of the use of a magic constant
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/hid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h
index b499308d6..e298f23a6 100644
--- a/src/core/hle/service/hid/hid.h
+++ b/src/core/hle/service/hid/hid.h
@@ -380,7 +380,7 @@ static_assert(sizeof(ControllerLayout) == 0x350,
380 380
381struct Controller { 381struct Controller {
382 ControllerHeader header; 382 ControllerHeader header;
383 std::array<ControllerLayout, 7> layouts; 383 std::array<ControllerLayout, HID_NUM_LAYOUTS> layouts;
384 std::array<u8, 0x2a70> unk_1; 384 std::array<u8, 0x2a70> unk_1;
385 ControllerMAC mac_left; 385 ControllerMAC mac_left;
386 ControllerMAC mac_right; 386 ControllerMAC mac_right;