diff options
| author | 2018-07-19 15:07:34 -0400 | |
|---|---|---|
| committer | 2018-07-19 15:07:36 -0400 | |
| commit | 95103a1b7b5ff0e20dc9507d1766918a60dc24c9 (patch) | |
| tree | 2e6f818f2c3b2b31a6452566f5130d27b0021f54 /src/core | |
| parent | Merge pull request #713 from lioncash/filesys (diff) | |
| download | yuzu-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.h | 2 |
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 | ||
| 381 | struct Controller { | 381 | struct 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; |