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
1 changed files with 8 additions and 2 deletions

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();
}
}