A program to show the use of a wireless xbox 360 controller. Has details on what data is given out from the controller as well as normalized values for the triggers and sticks

Dependencies:   USBHost USBHostXpad mbed

Fork of USBHostXpad_HelloWorld by Suga koubou

Auto generated API documentation and code listings for USBHostXpad_HelloWorld

Code

main.cpp [code]

Namespaces

AXYB Integer for storing the hex of the A X Y B buttons
bkStrtLCRC Integer for storing the hex of the Left analog button,Right analog button,back and start buttons
DPad Integer for storing the hex of the Directional buttons
LSX Float for storing the value of the Left Analogue Stick's X axis
LSY Float for storing the value of the Left Analogue Stick's Y axis
Lt Float for storing the value of the Left trigger
RSX Float for storing the value of the Right Analogue Stick's X axis
RSY Float for storing the value of the Right Analogue Stick's Y axis
Rt Float for storing the value of the Left trigger
sN Float for storing the stick Normalising value
tN Float for storing the trigger Normalising value
XLBRB Integer for storing the hex of the LB,RB and center X buttons