ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

Revision:
12:beb0d7632531
Parent:
9:3a7776a29a11
Child:
13:59e17cab320a
--- a/Input/Input.h	Sun Mar 17 10:55:11 2019 +0000
+++ b/Input/Input.h	Sun Mar 17 12:14:56 2019 +0000
@@ -1,6 +1,8 @@
+#include "Gamepad.h"
+
 class Input {
 public:
-    static const int NUMBER_OF_BUTTONS = 4; 
+    static const int NUMBER_OF_BUTTONS; 
     enum Button {LEFT, RIGHT, UP, DOWN};
     enum State {RELEASED, RELEASED_FRAME, HIT_FRAME, HELD};
     static void init();
@@ -9,5 +11,6 @@
     static bool buttonHit(Button button);
     static bool buttonHeld(Button button);
 private:
-    static State states[NUMBER_OF_BUTTONS];
+    static State states[4];
+    static Gamepad * gamepad;
 };
\ No newline at end of file