- DECLARE_DYNAMIC_CLASS(wxJoystickEvent)
-
- public:
- wxPoint m_pos;
- int m_zPosition;
- int m_buttonChange; // Which button changed?
- int m_buttonState; // Which buttons are down?
- int m_joyStick; // Which joystick?
-
- inline wxJoystickEvent(wxEventType type = wxEVT_NULL, int state = 0, int joystick = wxJOYSTICK1, int change = 0)
- { m_eventType = type; m_buttonState = state; m_pos = wxPoint(0,0); m_zPosition = 0;
- m_joyStick = joystick; m_buttonChange = change; }
-
- inline wxPoint GetPosition(void) const { return m_pos; }
- inline int GetZPosition(void) const { return m_zPosition; }
- inline int GetButtonState(void) const { return m_buttonState; }
- inline int GetButtonChange(void) const { return m_buttonChange; }
- inline int GetJoystick(void) const { return m_joyStick; }
-
- inline void SetJoystick(int stick) { m_joyStick = stick; }
- inline void SetButtonState(int state) { m_buttonState = state; }
- inline void SetButtonChange(int change) { m_buttonChange = change; }
- inline void SetPosition(const wxPoint& pos) { m_pos = pos; }
- inline void SetZPosition(int zPos) { m_zPosition = zPos; }
-
- // Was it a button event? (*doesn't* mean: is any button *down*?)
- inline bool IsButton(void) const { return ((GetEventType() == wxEVT_JOY_BUTTON_DOWN) ||
- (GetEventType() == wxEVT_JOY_BUTTON_DOWN)); }
-
- // Was it a move event?
- inline bool IsMove(void) const { return (GetEventType() == wxEVT_JOY_MOVE) ; }
-
- // Was it a zmove event?
- inline bool IsZMove(void) const { return (GetEventType() == wxEVT_JOY_ZMOVE) ; }
-
- // Was it a down event from button 1, 2, 3, 4 or any?
- inline bool ButtonDown(int but = wxJOY_BUTTON_ANY) const
+ DECLARE_DYNAMIC_CLASS(wxJoystickEvent)
+
+public:
+ wxPoint m_pos;
+ int m_zPosition;
+ int m_buttonChange; // Which button changed?
+ int m_buttonState; // Which buttons are down?
+ int m_joyStick; // Which joystick?
+
+ wxJoystickEvent(wxEventType type = wxEVT_NULL,
+ int state = 0,
+ int joystick = wxJOYSTICK1,
+ int change = 0)
+ {
+ m_eventType = type;
+ m_buttonState = state;
+ m_pos = wxPoint(0,0);
+ m_zPosition = 0;
+ m_joyStick = joystick;
+ m_buttonChange = change;
+ }
+
+ wxPoint GetPosition() const { return m_pos; }
+ int GetZPosition() const { return m_zPosition; }
+ int GetButtonState() const { return m_buttonState; }
+ int GetButtonChange() const { return m_buttonChange; }
+ int GetJoystick() const { return m_joyStick; }
+
+ void SetJoystick(int stick) { m_joyStick = stick; }
+ void SetButtonState(int state) { m_buttonState = state; }
+ void SetButtonChange(int change) { m_buttonChange = change; }
+ void SetPosition(const wxPoint& pos) { m_pos = pos; }
+ void SetZPosition(int zPos) { m_zPosition = zPos; }
+
+ // Was it a button event? (*doesn't* mean: is any button *down*?)
+ bool IsButton() const { return ((GetEventType() == wxEVT_JOY_BUTTON_DOWN) ||
+ (GetEventType() == wxEVT_JOY_BUTTON_DOWN)); }
+
+ // Was it a move event?
+ bool IsMove() const { return (GetEventType() == wxEVT_JOY_MOVE) ; }
+
+ // Was it a zmove event?
+ bool IsZMove() const { return (GetEventType() == wxEVT_JOY_ZMOVE) ; }
+
+ // Was it a down event from button 1, 2, 3, 4 or any?
+ bool ButtonDown(int but = wxJOY_BUTTON_ANY) const