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:20:49 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-10 23:20:49 +0300
commitbc74bafe89745cc46e1cc7e0414ec6f42777f80b (patch)
tree39c0575cc5fdfae6d7ee33e0cf7dbfcf8639f0ef
parent0ad79a59ec5132d2244f702e39e74e702cf30ef8 (diff)
L + R + Select + Start = HomeHEADmaster
-rw-r--r--Core/Src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Core/Src/main.c b/Core/Src/main.c
index adc105f..6ada208 100644
--- a/Core/Src/main.c
+++ b/Core/Src/main.c
@@ -184,10 +184,11 @@ int main(void)
joystick_data.hat_switch = 8;
// L + R + Select + Start = Home
- joystick_data.home |= wii_accessory_data.button_l
+ if (wii_accessory_data.button_l
&& wii_accessory_data.button_r
&& wii_accessory_data.button_select
- && wii_accessory_data.button_start;
+ && wii_accessory_data.button_start)
+ joystick_data.home |= 1;
} else {
memset(&joystick_data, 0, sizeof(joystick_data));
}