1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-12-22 07:28:53 -05:00

Update RetroJoystickAdapter_Playstation_XB360.ino

This commit is contained in:
Jarno Lehtinen 2021-01-18 22:52:08 +02:00 committed by GitHub
parent 5246d1c801
commit 7b1ebd0c6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,7 @@ void setup() {
#endif
#ifdef XINPUT
XInput.setAutoSend(false);
XInput.begin();
#endif
@ -166,6 +167,7 @@ void loop() {
XInput.setJoystick(JOY_RIGHT, PS_RX, PS_RY); //left-right: -32768..32767, down-up: 32767..-32768
#endif
XInput.send();
delayMicroseconds(1000);