mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts array
Gets rid of the use of a magic constant
This commit is contained in:
parent
427fc4ac6b
commit
95103a1b7b
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ static_assert(sizeof(ControllerLayout) == 0x350,
|
|||
|
||||
struct Controller {
|
||||
ControllerHeader header;
|
||||
std::array<ControllerLayout, 7> layouts;
|
||||
std::array<ControllerLayout, HID_NUM_LAYOUTS> layouts;
|
||||
std::array<u8, 0x2a70> unk_1;
|
||||
ControllerMAC mac_left;
|
||||
ControllerMAC mac_right;
|
||||
|
|
Loading…
Reference in a new issue