A usb interface emulating an Xbox 360 controller

Dependencies:   USBDevice

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;
    }
}

All wikipages