added default position for analogue sticks when no controller is connected
This commit is contained in:
@@ -49,6 +49,8 @@ void setup() {
|
|||||||
void loop() {
|
void loop() {
|
||||||
if (!(error == 0 && type == 0)) {
|
if (!(error == 0 && type == 0)) {
|
||||||
checkControllerConnection();
|
checkControllerConnection();
|
||||||
|
XInput.setJoystick(JOY_LEFT, 0, 0);
|
||||||
|
XInput.setJoystick(JOY_RIGHT, 0, 0);
|
||||||
delay(50);
|
delay(50);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user