diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-10 23:19:44 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-10 23:19:44 +0300 |
commit | 0ad79a59ec5132d2244f702e39e74e702cf30ef8 (patch) | |
tree | 0b5f173e25067838ed2fce4dafb29d19a4e78969 | |
parent | d9da7e4b5de9625ff949c86ca4687a044ef1accf (diff) |
L + R + Select + Start = Home
-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));
}
|