Joe Shotton / ll16j23s_test_docs
Revision:
25:ec8f4bea154c
Parent:
24:33639c2eacb3
Child:
28:bd21eff0a18a
--- a/Gamepad.h	Fri Jan 31 10:49:11 2020 +0000
+++ b/Gamepad.h	Sun Apr 05 19:59:03 2020 +0000
@@ -145,6 +145,11 @@
     */
     Direction get_direction();    // N,NE,E,SE etc.
 
+    /** CUSTOM: Gets joystick cardinal direction
+    * @returns an integer, 0 for centre, 1 - 4 for NESW respectively
+    */
+    int get_cardinal();
+
     /** Gets raw cartesian co-ordinates of joystick
     * @returns a struct with x,y members, each in the range 0.0 to 1.0
     */