mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-11-24 18:12:19 -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