Yang Hongxiao 201199678

Dependencies:   mbed

Revision:
1:a6ead8050c23
Parent:
0:4b02786450c0
--- a/Gamepad/Gamepad.h	Sun Apr 26 13:17:59 2020 +0000
+++ b/Gamepad/Gamepad.h	Thu May 14 17:00:34 2020 +0000
@@ -43,14 +43,15 @@
 };
 
 /** Gamepad Class
- * @brief Library for interfacing with ELEC2645 Gamepad PCB, University of Leeds
- * @author Dr Craig A. Evans
- * @author Dr Alex Valavanis
- */
+@brief Library for interfacing with ELEC2645 Gamepad PCB, University of Leeds
+@author Dr Craig A. Evans
+@author Dr Alex Valanvanis
+@date Febraury 2017
+*/
 class Gamepad
 {
-public:
-/** Gamepad events 
+    public:
+    /** Gamepad events 
  * @brief List of events that can be registered on the gamepad
  */
 enum GamepadEvent {
@@ -65,7 +66,6 @@
     JOY_PRESSED,   ///< Joystick button has been pressed
     N_EVENTS       ///< A dummy flag that marks the end of the list
 };
-
 private:
     mbed::PwmOut *_led1;
     mbed::PwmOut *_led2;
@@ -99,6 +99,7 @@
     float _y0;
 
 public:
+
     /** Constructor */
     Gamepad();
 
@@ -143,23 +144,10 @@
      */
     bool check_event(GamepadEvent const id);
 
-    /**
-     * @brief   Get the raw binary event state
-     * @return  The event state as a binary code
-     * @details The check_event() function is likely to be more useful than
-     *          this, for testing whether a given event has occurred. It can be
-     *          useful for debugging via the terminal, however, for example:
-     *          @code
-     *          std::cout << gamepad.get_raw_event_state() << std::endl;
-     *          @endcode
-     */
-    inline std::bitset<N_EVENTS> get_raw_event_state() const {
-        return _event_state;
-    }
-
     /** Get magnitude of joystick movement
     * @returns value in range 0.0 to 1.0
     */
+
     float get_mag();
 
     /** Get angle of joystick movement