Fix undefined hat_mapping

This commit is contained in:
LuiCat 2021-03-23 15:52:44 +08:00 committed by GitHub
parent a301c7d86b
commit 03dfb12ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,8 +308,8 @@ void loop() {
for (int i = 0; i < 4; ++i) { // Buttons for hats
state |= (button_state[i] ? 1 << i : 0);
}
#endif
Joystick.HAT = hat_mapping[state];
#endif
Joystick.sendState();
Joystick.Button = SWITCH_BTN_NONE;
#ifdef DEBUG_TIME