Changed order on hat switches
This commit is contained in:
parent
19b692802b
commit
41f084b156
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user