Changed order on hat switches

This commit is contained in:
Christoffer Martinsson 2025-03-04 19:20:39 +01:00
parent 19b692802b
commit 41f084b156

View File

@ -711,9 +711,9 @@ fn get_joystick_report(
matrix_keys[15].usb_button_sec_pressed = sec_button_pressed;
}
if matrix_keys[15].usb_button_sec != 0 && matrix_keys[15].usb_button_sec_pressed {
hat3 = hat_l;
hat2 = hat_l;
} else {
hat1 = hat_l;
hat4 = hat_l;
}
// Handle sec_button (Fn) for right hat switch
@ -731,9 +731,9 @@ fn get_joystick_report(
matrix_keys[20].usb_button_sec_pressed = sec_button_pressed;
}
if matrix_keys[20].usb_button_sec != 0 && matrix_keys[20].usb_button_sec_pressed {
hat4 = hat_r;
hat1 = hat_r;
} else {
hat2 = hat_r;
hat3 = hat_r;
}
// Fix button state for center hat press on hat