1 \section{\class{wxJoystickEvent
}}\label{wxjoystickevent
}
3 This event class contains information about mouse events, particularly
4 events received by windows.
6 \wxheading{Derived from
}
8 \helpref{wxEvent
}{wxevent
}
10 \wxheading{Include files
}
14 \wxheading{Event table macros
}
16 To process a mouse event, use these event handler macros to direct input to member
17 functions that take a wxJoystickEvent argument.
20 \begin{twocollist
}\itemsep=
0pt
21 \twocolitem{{\bf EVT
\_JOY\_BUTTON\_DOWN(func)
}}{Process a wxEVT
\_JOY\_BUTTON\_DOWN event.
}
22 \twocolitem{{\bf EVT
\_JOY\_BUTTON\_UP(func)
}}{Process a wxEVT
\_JOY\_BUTTON\_UP event.
}
23 \twocolitem{{\bf EVT
\_JOY\_MOVE(func)
}}{Process a wxEVT
\_JOY\_MOVE event.
}
24 \twocolitem{{\bf EVT
\_JOY\_ZMOVE(func)
}}{Process a wxEVT
\_JOY\_ZMOVE event.
}
29 \helpref{wxJoystick
}{wxjoystick
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxJoystickEvent::wxJoystickEvent
}
35 \func{}{wxJoystickEvent
}{\param{WXTYPE
}{ eventType =
0},
\param{int
}{ state =
0},
36 \param{int
}{ joystick = wxJOYSTICK1
},
\param{int
}{change =
0}}
40 \membersection{wxJoystickEvent::ButtonDown
}\label{wxjoystickeventbuttondown
}
42 \constfunc{bool
}{ButtonDown
}{\param{int
}{ button = wxJOY
\_BUTTON\_ANY}}
44 Returns TRUE if the event was a down event from the specified button (or any button).
46 \wxheading{Parameters
}
48 \docparam{button
}{Can be wxJOY
\_BUTTONn where n is
1,
2,
3 or
4; or wxJOY
\_BUTTON\_ANY to
49 indicate any button down event.
}
51 \membersection{wxJoystickEvent::ButtonIsDown
}\label{wxjoystickeventbuttonisdown
}
53 \constfunc{bool
}{ButtonIsDown
}{\param{int
}{ button = wxJOY
\_BUTTON\_ANY}}
55 Returns TRUE if the specified button (or any button) was in a down state.
57 \wxheading{Parameters
}
59 \docparam{button
}{Can be wxJOY
\_BUTTONn where n is
1,
2,
3 or
4; or wxJOY
\_BUTTON\_ANY to
60 indicate any button down event.
}
62 \membersection{wxJoystickEvent::ButtonUp
}\label{wxjoystickeventbuttonup
}
64 \constfunc{bool
}{ButtonUp
}{\param{int
}{ button = wxJOY
\_BUTTON\_ANY}}
66 Returns TRUE if the event was an up event from the specified button (or any button).
68 \wxheading{Parameters
}
70 \docparam{button
}{Can be wxJOY
\_BUTTONn where n is
1,
2,
3 or
4; or wxJOY
\_BUTTON\_ANY to
71 indicate any button down event.
}
73 \membersection{wxJoystickEvent::GetButtonChange
}\label{wxjoystickeventgetbuttonchange
}
75 \constfunc{int
}{GetButtonChange
}{\void}
77 Returns the identifier of the button changing state. This is a wxJOY
\_BUTTONn identifier, where
78 n is one of
1,
2,
3,
4.
80 \membersection{wxJoystickEvent::GetButtonState
}\label{wxjoystickeventgetbuttonstate
}
82 \constfunc{int
}{GetButtonState
}{\void}
84 Returns the down state of the buttons. This is a bitlist of wxJOY
\_BUTTONn identifiers, where
85 n is one of
1,
2,
3,
4.
87 \membersection{wxJoystickEvent::GetJoystick
}\label{wxjoystickeventgetjoystick
}
89 \constfunc{int
}{GetJoystick
}{\void}
91 Returns the identifier of the joystick generating the event - one of wxJOYSTICK1 and wxJOYSTICK2.
93 \membersection{wxJoystickEvent::GetPosition
}\label{wxjoystickeventgetposition
}
95 \constfunc{wxPoint
}{GetPosition
}{\void}
97 Returns the x, y position of the joystick event.
99 \membersection{wxJoystickEvent::GetZPosition
}\label{wxjoystickeventgetzposition
}
101 \constfunc{int
}{GetZPosition
}{\void}
103 Returns the z position of the joystick event.
105 \membersection{wxJoystickEvent::IsButton
}\label{wxjoystickeventisbutton
}
107 \constfunc{bool
}{IsButton
}{\void}
109 Returns TRUE if this was a button up or down event (
{\it not
} 'is any button down?').
111 \membersection{wxJoystickEvent::IsMove
}\label{wxjoystickeventismove
}
113 \constfunc{bool
}{IsMove
}{\void}
115 Returns TRUE if this was an x, y move event.
117 \membersection{wxJoystickEvent::IsZMove
}\label{wxjoystickeventiszmove
}
119 \constfunc{bool
}{IsZMove
}{\void}
121 Returns TRUE if this was a z move event.