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:
-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));
}