We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a29ba9 commit 8090843Copy full SHA for 8090843
examples/WiiClassicController/WiiClassicController.ino
@@ -78,12 +78,15 @@ void loop() {
78
79
// XInput.setButton(BUTTON_L3, classic.buttonZL()); // The Classic Controller doesn't have L3 and R3
80
// XInput.setButton(BUTTON_R3, classic.buttonZR()); // but you can uncomment these to check that they work
81
+
82
+ XInput.send();
83
}
84
else { // Data is bad :(
- XInput.releaseAll(); // clear set inputs
- classic.connect(); // attempt to reconnect
85
- delay(1000);
86
- }
+ XInput.releaseAll(); // clear set inputs...
+ XInput.send(); // ...and send that update
87
88
- XInput.send();
+ while (!classic.connect()) { // attempt to reconnect
89
+ delay(1000);
90
+ }
91
92
0 commit comments