tankkk
Dependencies: USBHost USBHostXpad mbed-rtos mbed
utils.h@9:789350244478, 2014-12-06 (annotated)
- Committer:
- hotwheelharry
- Date:
- Sat Dec 06 05:20:03 2014 +0000
- Revision:
- 9:789350244478
- Parent:
- 3:c1620db50a75
stop at atartup
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 | 3:c1620db50a75 | 9 | float xpadNormalizeAnalog(int x); |
hotwheelharry | 3:c1620db50a75 | 10 | float xpadNormalizeTrigger(int x); |
hotwheelharry | 0:79485480cd7e | 11 | struct Xbox360ControllerState{ |
hotwheelharry | 0:79485480cd7e | 12 | int buttons; |
hotwheelharry | 0:79485480cd7e | 13 | int analogLeftX; |
hotwheelharry | 0:79485480cd7e | 14 | int analogLeftY; |
hotwheelharry | 0:79485480cd7e | 15 | int analogRightX; |
hotwheelharry | 0:79485480cd7e | 16 | int analogRightY; |
hotwheelharry | 0:79485480cd7e | 17 | int triggerLeft; |
hotwheelharry | 0:79485480cd7e | 18 | int triggerRight; |
hotwheelharry | 0:79485480cd7e | 19 | Xbox360ControllerState(){}; |
hotwheelharry | 0:79485480cd7e | 20 | Xbox360ControllerState(int buttons, int stick_lx, int stick_ly, int stick_rx, int stick_ry, int trigger_l, int trigger_r) |
hotwheelharry | 0:79485480cd7e | 21 | : buttons(buttons), analogLeftX(stick_lx), analogLeftY(stick_ly), analogRightX(stick_rx), analogRightY(stick_ry), triggerLeft(trigger_l), triggerRight(trigger_r) |
hotwheelharry | 0:79485480cd7e | 22 | {} |
hotwheelharry | 0:79485480cd7e | 23 | }; |
hotwheelharry | 0:79485480cd7e | 24 | |
hotwheelharry | 0:79485480cd7e | 25 | |
hotwheelharry | 0:79485480cd7e | 26 | #endif |