mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-11-28 12:02:15 -05:00
Update x-arcade.ino
This commit is contained in:
parent
f0ed52937e
commit
e27b9ecb31
@ -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();
|
Serial.flush();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Joystick[j].updateState();
|
//Joystick[j].updateState();
|
||||||
Joystick[j].sendState();
|
//Joystick[j].sendState();
|
||||||
|
Joystick[j].updateAndSendState();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user