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