diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-10 23:20:49 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-10 23:20:49 +0300 |
commit | bc74bafe89745cc46e1cc7e0414ec6f42777f80b (patch) | |
tree | 39c0575cc5fdfae6d7ee33e0cf7dbfcf8639f0ef | |
parent | 0ad79a59ec5132d2244f702e39e74e702cf30ef8 (diff) |
-rw-r--r-- | Core/Src/main.c | 5 |
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));
}
|