LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
JoystickHeldEvent.h
1 #ifndef JOYSTICK_HELD_EVENT_H_
2 #define JOYSTICK_HELD_EVENT_H_
3 
4 #include "DelayedEvent.h"
5 #include "../../DriverStation/DebouncedJoystick.h"
6 #include "JoystickPressedEvent.h"
7 
12 {
13 public:
14  JoystickHeldEvent(DebouncedJoystick* joystick, int button, int cycles);
15  virtual ~JoystickHeldEvent();
16 
17  int GetButton();
18  DebouncedJoystick* GetJoystick();
19 
20 private:
21  DebouncedJoystick* m_joystick;
22  int m_lastFiredButton;
23 };
24 
25 #endif