Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Usage
Basic usage of the library
#include "Xinput.h"
Xinput Xbox;
int16_t x= 0;
int main() {
    while(1) {
        
        Xbox.update_analog(STICK_LEFT_X, x);
        Xbox.send_controls(); // this is a blocking method. controls are send every 4ms
        Xbox.clear();
        x += 10;
    }
}