tankkk
Dependencies: USBHost USBHostXpad mbed-rtos mbed
utils.h@0:79485480cd7e, 2014-11-13 (annotated)
- Committer:
- hotwheelharry
- Date:
- Thu Nov 13 23:20:02 2014 +0000
- Revision:
- 0:79485480cd7e
- Child:
- 3:c1620db50a75
first commit - compile ok;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hotwheelharry | 0:79485480cd7e | 1 | |
hotwheelharry | 0:79485480cd7e | 2 | #ifndef utilshhh |
hotwheelharry | 0:79485480cd7e | 3 | #define utilshhh |
hotwheelharry | 0:79485480cd7e | 4 | |
hotwheelharry | 0:79485480cd7e | 5 | |
hotwheelharry | 0:79485480cd7e | 6 | double ghettoFloor(double d); |
hotwheelharry | 0:79485480cd7e | 7 | double round(double d); |
hotwheelharry | 0:79485480cd7e | 8 | |
hotwheelharry | 0:79485480cd7e | 9 | struct Xbox360ControllerState{ |
hotwheelharry | 0:79485480cd7e | 10 | int buttons; |
hotwheelharry | 0:79485480cd7e | 11 | int analogLeftX; |
hotwheelharry | 0:79485480cd7e | 12 | int analogLeftY; |
hotwheelharry | 0:79485480cd7e | 13 | int analogRightX; |
hotwheelharry | 0:79485480cd7e | 14 | int analogRightY; |
hotwheelharry | 0:79485480cd7e | 15 | int triggerLeft; |
hotwheelharry | 0:79485480cd7e | 16 | int triggerRight; |
hotwheelharry | 0:79485480cd7e | 17 | Xbox360ControllerState(){}; |
hotwheelharry | 0:79485480cd7e | 18 | Xbox360ControllerState(int buttons, int stick_lx, int stick_ly, int stick_rx, int stick_ry, int trigger_l, int trigger_r) |
hotwheelharry | 0:79485480cd7e | 19 | : buttons(buttons), analogLeftX(stick_lx), analogLeftY(stick_ly), analogRightX(stick_rx), analogRightY(stick_ry), triggerLeft(trigger_l), triggerRight(trigger_r) |
hotwheelharry | 0:79485480cd7e | 20 | {} |
hotwheelharry | 0:79485480cd7e | 21 | }; |
hotwheelharry | 0:79485480cd7e | 22 | |
hotwheelharry | 0:79485480cd7e | 23 | |
hotwheelharry | 0:79485480cd7e | 24 | #endif |