Niet van mijzelf

Dependencies:   USBHost USBHostXpad mbed-rtos mbed

Fork of x4180_Tank by C K

Committer:
347467
Date:
Wed Feb 25 08:38:37 2015 +0000
Revision:
10:7e3987c8fa37
Parent:
3:c1620db50a75
Xboxcontroller;

Who changed what in which revision?

UserRevisionLine numberNew 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