1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-24 18:12:19 -05:00

Update x-arcade.ino

This commit is contained in:
Jarno Lehtinen 2017-04-18 16:38:45 +03:00 committed by GitHub
parent f0ed52937e
commit e27b9ecb31

View File

@ -164,6 +164,11 @@ public:
}
}
void updateAndSendState() {
translateState(data, state);
HID().SendReport(reportId, state, JOYSTICK_STATE_SIZE);
}
};
@ -226,8 +231,9 @@ void loop() {
Serial.flush();
#endif
Joystick[j].updateState();
Joystick[j].sendState();
//Joystick[j].updateState();
//Joystick[j].sendState();
Joystick[j].updateAndSendState();
}
}