joystick library

Fork of Joystick by Craig Evans

Revision:
1:d86504f8299b
Parent:
0:649b59b2fb26
--- a/Joystick.h	Tue Feb 07 13:01:48 2017 +0000
+++ b/Joystick.h	Wed Apr 19 09:15:35 2017 +0000
@@ -2,11 +2,12 @@
 #define JOYSTICK_H
 
 #include "mbed.h"
+#include "Gamepad.h"
 
 // this value can be tuned to alter tolerance of joystick movement
 #define TOL 0.1f
 #define RAD2DEG 57.2957795131f
-
+/*
 enum Direction {
     CENTRE,  // 0
     N,       // 1
@@ -22,12 +23,12 @@
 struct Vector2D {
   float x;
   float y;  
-};
+}; 
 
 struct Polar {
     float mag;
     float angle;
-};
+};*/
 
 /** Joystick Class
 @author Dr Craig A. Evans, University of Leeds