mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-12-21 23:18:56 -05:00
Update RetroJoystickAdapter_Playstation_XB360.ino
This commit is contained in:
parent
5246d1c801
commit
7b1ebd0c6e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user