| 197 | // -------------------------------------------------------- |
| 198 | |
| 199 | XInputController::XInputController() : |
| 200 | tx(), rumble() // Zero initialize arrays |
| 201 | { |
| 202 | reset(); |
| 203 | #ifdef USB_XINPUT |
| 204 | XInputUSB::setRecvCallback(XInputLib_Receive_Callback); |
| 205 | while(this->receive()); // flush USB OUT buffer |
| 206 | #endif |
| 207 | } |
| 208 | |
| 209 | void XInputController::begin() { |
| 210 | // Empty for now |