Send an update packet to the PC
| 440 | |
| 441 | //Send an update packet to the PC |
| 442 | int XInputController::send() { |
| 443 | if (!newData) return 0; // TX data hasn't changed |
| 444 | newData = false; |
| 445 | #ifdef USB_XINPUT |
| 446 | return XInputUSB::send(tx, sizeof(tx)); |
| 447 | #else |
| 448 | printDebug(); |
| 449 | return sizeof(tx); |
| 450 | #endif |
| 451 | } |
| 452 | |
| 453 | int XInputController::receive() { |
| 454 | #ifdef USB_XINPUT |
nothing calls this directly
no outgoing calls
no test coverage detected