diff options
-rw-r--r-- | Core/Src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Core/Src/main.c b/Core/Src/main.c index 5896268..adc105f 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -182,6 +182,12 @@ int main(void) joystick_data.hat_switch = 6;
else
joystick_data.hat_switch = 8;
+
+ // L + R + Select + Start = Home
+ joystick_data.home |= wii_accessory_data.button_l
+ && wii_accessory_data.button_r
+ && wii_accessory_data.button_select
+ && wii_accessory_data.button_start;
} else {
memset(&joystick_data, 0, sizeof(joystick_data));
}
|