JoyPadCtrl.h 557 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Created by jovian on 01/08/17.
  3. //
  4. #ifndef TINYSHOOTER_JOYPADCTRL_H
  5. #define TINYSHOOTER_JOYPADCTRL_H
  6. #include "Controller.h"
  7. #include "InputAndJoy.h"
  8. class JoyPadCtrl : public Controller {
  9. public:
  10. JoyPadCtrl(InputAndJoy *inputJoy, SDL_JoystickID id = 0);
  11. void refresh() override;
  12. protected:
  13. InputAndJoy *m_inputJoy;
  14. SDL_JoystickID m_id;
  15. const float m_sqCeilMove; // Dead moving joystick zone (squared length)
  16. const float m_sqCeilVisor; // Dead visor joystick zone (squared length)
  17. };
  18. #endif //TINYSHOOTER_JOYPADCTRL_H