ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

Revision:
39:e128071a95b0
Parent:
31:69fedaa9b171
--- a/Input/Input.h	Sat Apr 27 16:06:33 2019 +0000
+++ b/Input/Input.h	Mon Apr 29 16:30:47 2019 +0000
@@ -1,9 +1,33 @@
 #ifndef INPUT_H
 #define INPUT_H
 
+/**
+ * Input Namespace
+ * @brief Namespace providing functions to
+ * interface with SampledIn objects for each button used.
+ */
 namespace Input {
+    /**
+     * @brief Button Enum represeting each button used for controling the game
+     * The directional button are labeled as follows on the pcb
+     * LEFT -> A 
+     * RIGHT -> Y
+     * UP -> X
+     * DOWN -> B
+     */
     enum Button {LEFT, RIGHT, UP, DOWN, START};
+    
+    /**
+     * @input A button from the Button enum
+     * @see Button
+     * @returns True if the button was hit this frame, else false
+     */
     bool buttonHit(Button button);
+    
+    /**
+     * @returns A random seed for the random generator, 
+     * based on the Analogue Input from the joystick.
+     */
     int getSeed();
 };
 #endif
\ No newline at end of file