MCPcopy Create free account
hub / github.com/dmadison/ArduinoXInput / send

Method send

src/XInput.cpp:442–451  ·  view source on GitHub ↗

Send an update packet to the PC

Source from the content-addressed store, hash-verified

440
441//Send an update packet to the PC
442int 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
453int XInputController::receive() {
454#ifdef USB_XINPUT

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected