joystick library

Fork of Joystick by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
el15tm2
Date:
Wed Apr 19 09:15:35 2017 +0000
Parent:
0:649b59b2fb26
Commit message:
first entry

Changed in this revision

Joystick.cpp Show annotated file Show diff for this revision Revisions of this file
Joystick.h Show annotated file Show diff for this revision Revisions of this file
--- a/Joystick.cpp	Tue Feb 07 13:01:48 2017 +0000
+++ b/Joystick.cpp	Wed Apr 19 09:15:35 2017 +0000
@@ -160,3 +160,4 @@
 {
     _click_flag = 1;
 }
+
--- 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