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

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