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{Event table macros
}
12 To process a mouse event, use these event handler macros to direct input to member
13 functions that take a wxJoystickEvent argument.
16 \begin{twocollist
}\itemsep=
0pt
17 \twocolitem{{\bf EVT
\_JOY\_BUTTON\_DOWN(func)
}}{Process a wxEVT
\_JOY\_BUTTON\_DOWN event.
}
18 \twocolitem{{\bf EVT
\_JOY\_BUTTON\_UP(func)
}}{Process a wxEVT
\_JOY\_BUTTON\_UP event.
}
19 \twocolitem{{\bf EVT
\_JOY\_MOVE(func)
}}{Process a wxEVT
\_JOY\_MOVE event.
}
20 \twocolitem{{\bf EVT
\_JOY\_ZMOVE(func)
}}{Process a wxEVT
\_JOY\_ZMOVE event.
}
25 \helpref{wxJoystick
}{wxjoystick
}
27 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxJoystickEvent::wxJoystickEvent
}
31 \func{}{wxJoystickEvent
}{\param{WXTYPE
}{ eventType =
0},
\param{int
}{ state =
0},
32 \param{int
}{ joystick = wxJOYSTICK1
},
\param{int
}{change =
0}}
36 \membersection{wxJoystickEvent::ButtonDown
}\label{wxjoystickeventbuttondown
}
38 \constfunc{bool
}{ButtonDown
}{\param{int
}{ button = wxJOY
\_BUTTON\_ANY}}
40 Returns TRUE if the event was a down event from the specified button (or any button).
42 \wxheading{Parameters
}
44 \docparam{button
}{Can be wxJOY
\_BUTTONn where n is
1,
2,
3 or
4; or wxJOY
\_BUTTON\_ANY to
45 indicate any button down event.
}
47 \membersection{wxJoystickEvent::ButtonIsDown
}\label{wxjoystickeventbuttonisdown
}
49 \constfunc{bool
}{ButtonIsDown
}{\param{int
}{ button = wxJOY
\_BUTTON\_ANY}}
51 Returns TRUE if the specified button (or any button) was in a down state.
53 \wxheading{Parameters
}
55 \docparam{button
}{Can be wxJOY
\_BUTTONn where n is
1,
2,
3 or
4; or wxJOY
\_BUTTON\_ANY to
56 indicate any button down event.
}
58 \membersection{wxJoystickEvent::ButtonUp
}\label{wxjoystickeventbuttonup
}
60 \constfunc{bool
}{ButtonUp
}{\param{int
}{ button = wxJOY
\_BUTTON\_ANY}}
62 Returns TRUE if the event was an up event from the specified button (or any button).
64 \wxheading{Parameters
}
66 \docparam{button
}{Can be wxJOY
\_BUTTONn where n is
1,
2,
3 or
4; or wxJOY
\_BUTTON\_ANY to
67 indicate any button down event.
}
69 \membersection{wxJoystickEvent::GetButtonChange
}\label{wxjoystickeventgetbuttonchange
}
71 \constfunc{int
}{GetButtonChange
}{\void}
73 Returns the identifier of the button changing state. This is a wxJOY
\_BUTTONn identifier, where
74 n is one of
1,
2,
3,
4.
76 \membersection{wxJoystickEvent::GetButtonState
}\label{wxjoystickeventgetbuttonstate
}
78 \constfunc{int
}{GetButtonState
}{\void}
80 Returns the down state of the buttons. This is a bitlist of wxJOY
\_BUTTONn identifiers, where
81 n is one of
1,
2,
3,
4.
83 \membersection{wxJoystickEvent::GetJoystick
}\label{wxjoystickeventgetjoystick
}
85 \constfunc{int
}{GetJoystick
}{\void}
87 Returns the identifier of the joystick generating the event - one of wxJOYSTICK1 and wxJOYSTICK2.
89 \membersection{wxJoystickEvent::GetPosition
}\label{wxjoystickeventgetposition
}
91 \constfunc{wxPoint
}{GetPosition
}{\void}
93 Returns the x, y position of the joystick event.
95 \membersection{wxJoystickEvent::GetZPosition
}\label{wxjoystickeventgetzposition
}
97 \constfunc{int
}{GetZPosition
}{\void}
99 Returns the z position of the joystick event.
101 \membersection{wxJoystickEvent::IsButton
}\label{wxjoystickeventisbutton
}
103 \constfunc{bool
}{IsButton
}{\void}
105 Returns TRUE if this was a button up or down event (
{\it not
} 'is any button down?').
107 \membersection{wxJoystickEvent::IsMove
}\label{wxjoystickeventismove
}
109 \constfunc{bool
}{IsMove
}{\void}
111 Returns TRUE if this was an x, y move event.
113 \membersection{wxJoystickEvent::IsZMove
}\label{wxjoystickeventiszmove
}
115 \constfunc{bool
}{IsZMove
}{\void}
117 Returns TRUE if this was a z move event.