Skip to content

Commit 8dd38de

Browse files
committed
Use static functions for XInputUSB
Matching changes to the boards API
1 parent 5076cfa commit 8dd38de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/XInput.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ uint8_t XInputGamepad::getLEDPatternID() const {
308308
void XInputGamepad::send() {
309309
#ifdef USB_XINPUT
310310
if (!newData) return; // TX data hasn't changed
311-
XInputUSB.send(tx, USB_Timeout);
311+
XInputUSB::send(tx, USB_Timeout);
312312
newData = false;
313313
#else
314314
#warning "Using debug output for XInput send()"
@@ -318,13 +318,13 @@ void XInputGamepad::send() {
318318

319319
void XInputGamepad::receive() {
320320
#ifdef USB_XINPUT
321-
if (XInputUSB.available() == 0) {
321+
if (XInputUSB::available() == 0) {
322322
return; // No packet available
323323
}
324324

325325
// Grab packet and store it in rx array
326326
uint8_t rx[8];
327-
XInputUSB.recv(rx, USB_Timeout);
327+
XInputUSB::recv(rx, USB_Timeout);
328328

329329
// Rumble Packet
330330
if ((rx[0] == 0x00) & (rx[1] == 0x08)) {

0 commit comments

Comments
 (0)