aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/xinput
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/xinput')
-rw-r--r--cores/arduino/xinput/USB_XInput_API.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/xinput/USB_XInput_API.cpp b/cores/arduino/xinput/USB_XInput_API.cpp
index 27a6670..678692d 100644
--- a/cores/arduino/xinput/USB_XInput_API.cpp
+++ b/cores/arduino/xinput/USB_XInput_API.cpp
@@ -31,7 +31,7 @@
void (*XInputUSB::RecvCallback)(void) = nullptr;
boolean XInputUSB::connected() {
- return true; // Need to implement
+ return USBDevice.configured();
}
int XInputUSB::available() {