diff --git a/X-Arcade/x-arcade.ino b/X-Arcade/x-arcade.ino index abc67d5..e4185cc 100644 --- a/X-Arcade/x-arcade.ino +++ b/X-Arcade/x-arcade.ino @@ -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(); } }