JJ Dekker / Mbed 2 deprecated Totaleprogramma1

Dependencies:   USBHost USBHostXpad mbed-rtos mbed

Fork of Totaleprogramma by jordy morsinkhof

Revision:
0:345f76c72b9a
diff -r 000000000000 -r 345f76c72b9a utils.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/utils.h	Wed Feb 25 08:25:16 2015 +0000
@@ -0,0 +1,26 @@
+
+#ifndef utilshhh
+#define utilshhh
+
+
+double ghettoFloor(double d);
+double round(double d);
+
+float xpadNormalizeAnalog(int x);
+float xpadNormalizeTrigger(int x);
+struct Xbox360ControllerState{
+    int buttons;
+    int analogLeftX;
+    int analogLeftY;
+    int analogRightX;
+    int analogRightY;
+    int triggerLeft;
+    int triggerRight;
+    Xbox360ControllerState(){};
+    Xbox360ControllerState(int buttons, int stick_lx, int stick_ly, int stick_rx, int stick_ry, int trigger_l, int trigger_r)
+    : buttons(buttons), analogLeftX(stick_lx), analogLeftY(stick_ly), analogRightX(stick_rx), analogRightY(stick_ry), triggerLeft(trigger_l), triggerRight(trigger_r)
+    {}
+};
+
+
+#endif
\ No newline at end of file