Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/wii2usb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-10 23:19:44 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-10 23:19:44 +0300
commit0ad79a59ec5132d2244f702e39e74e702cf30ef8 (patch)
tree0b5f173e25067838ed2fce4dafb29d19a4e78969
parentd9da7e4b5de9625ff949c86ca4687a044ef1accf (diff)
L + R + Select + Start = Home
-rw-r--r--Core/Src/main.c6
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));
}