comparison docs/html/joystick.html @ 803:355632dca928

Updated SDL HTML documentation
author Sam Lantinga <slouken@libsdl.org>
date Tue, 10 Feb 2004 15:15:40 +0000
parents 55f1f1b3e27d
children
comparison
equal deleted inserted replaced
802:3c609d54f100 803:355632dca928
2 ><HEAD 2 ><HEAD
3 ><TITLE 3 ><TITLE
4 >Joystick</TITLE 4 >Joystick</TITLE
5 ><META 5 ><META
6 NAME="GENERATOR" 6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8 "><LINK 8 "><LINK
9 REL="HOME" 9 REL="HOME"
10 TITLE="SDL Library Documentation" 10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK 11 HREF="index.html"><LINK
12 REL="UP" 12 REL="UP"
30 VLINK="#551a8b" 30 VLINK="#551a8b"
31 ALINK="#ff0000" 31 ALINK="#ff0000"
32 ><DIV 32 ><DIV
33 CLASS="NAVHEADER" 33 CLASS="NAVHEADER"
34 ><TABLE 34 ><TABLE
35 SUMMARY="Header navigation table"
35 WIDTH="100%" 36 WIDTH="100%"
36 BORDER="0" 37 BORDER="0"
37 CELLPADDING="0" 38 CELLPADDING="0"
38 CELLSPACING="0" 39 CELLSPACING="0"
39 ><TR 40 ><TR
47 WIDTH="10%" 48 WIDTH="10%"
48 ALIGN="left" 49 ALIGN="left"
49 VALIGN="bottom" 50 VALIGN="bottom"
50 ><A 51 ><A
51 HREF="sdljoystickeventstate.html" 52 HREF="sdljoystickeventstate.html"
53 ACCESSKEY="P"
52 >Prev</A 54 >Prev</A
53 ></TD 55 ></TD
54 ><TD 56 ><TD
55 WIDTH="80%" 57 WIDTH="80%"
56 ALIGN="center" 58 ALIGN="center"
60 WIDTH="10%" 62 WIDTH="10%"
61 ALIGN="right" 63 ALIGN="right"
62 VALIGN="bottom" 64 VALIGN="bottom"
63 ><A 65 ><A
64 HREF="sdlnumjoysticks.html" 66 HREF="sdlnumjoysticks.html"
67 ACCESSKEY="N"
65 >Next</A 68 >Next</A
66 ></TD 69 ></TD
67 ></TR 70 ></TR
68 ></TABLE 71 ></TABLE
69 ><HR 72 ><HR
72 ><DIV 75 ><DIV
73 CLASS="CHAPTER" 76 CLASS="CHAPTER"
74 ><H1 77 ><H1
75 ><A 78 ><A
76 NAME="JOYSTICK" 79 NAME="JOYSTICK"
77 >Chapter 9. Joystick</A 80 ></A
78 ></H1 81 >Chapter 9. Joystick</H1
79 ><DIV 82 ><DIV
80 CLASS="TOC" 83 CLASS="TOC"
81 ><DL 84 ><DL
82 ><DT 85 ><DT
83 ><B 86 ><B
85 ></DT 88 ></DT
86 ><DT 89 ><DT
87 ><A 90 ><A
88 HREF="sdlnumjoysticks.html" 91 HREF="sdlnumjoysticks.html"
89 >SDL_NumJoysticks</A 92 >SDL_NumJoysticks</A
90 > &#8212; Count available joysticks.</DT 93 >&nbsp;--&nbsp;Count available joysticks.</DT
91 ><DT 94 ><DT
92 ><A 95 ><A
93 HREF="sdljoystickname.html" 96 HREF="sdljoystickname.html"
94 >SDL_JoystickName</A 97 >SDL_JoystickName</A
95 > &#8212; Get joystick name.</DT 98 >&nbsp;--&nbsp;Get joystick name.</DT
96 ><DT 99 ><DT
97 ><A 100 ><A
98 HREF="sdljoystickopen.html" 101 HREF="sdljoystickopen.html"
99 >SDL_JoystickOpen</A 102 >SDL_JoystickOpen</A
100 > &#8212; Opens a joystick for use.</DT 103 >&nbsp;--&nbsp;Opens a joystick for use.</DT
101 ><DT 104 ><DT
102 ><A 105 ><A
103 HREF="sdljoystickopened.html" 106 HREF="sdljoystickopened.html"
104 >SDL_JoystickOpened</A 107 >SDL_JoystickOpened</A
105 > &#8212; Determine if a joystick has been opened</DT 108 >&nbsp;--&nbsp;Determine if a joystick has been opened</DT
106 ><DT 109 ><DT
107 ><A 110 ><A
108 HREF="sdljoystickindex.html" 111 HREF="sdljoystickindex.html"
109 >SDL_JoystickIndex</A 112 >SDL_JoystickIndex</A
110 > &#8212; Get the index of an SDL_Joystick.</DT 113 >&nbsp;--&nbsp;Get the index of an SDL_Joystick.</DT
111 ><DT 114 ><DT
112 ><A 115 ><A
113 HREF="sdljoysticknumaxes.html" 116 HREF="sdljoysticknumaxes.html"
114 >SDL_JoystickNumAxes</A 117 >SDL_JoystickNumAxes</A
115 > &#8212; Get the number of joystick axes</DT 118 >&nbsp;--&nbsp;Get the number of joystick axes</DT
116 ><DT 119 ><DT
117 ><A 120 ><A
118 HREF="sdljoysticknumballs.html" 121 HREF="sdljoysticknumballs.html"
119 >SDL_JoystickNumBalls</A 122 >SDL_JoystickNumBalls</A
120 > &#8212; Get the number of joystick trackballs</DT 123 >&nbsp;--&nbsp;Get the number of joystick trackballs</DT
121 ><DT 124 ><DT
122 ><A 125 ><A
123 HREF="sdljoysticknumhats.html" 126 HREF="sdljoysticknumhats.html"
124 >SDL_JoystickNumHats</A 127 >SDL_JoystickNumHats</A
125 > &#8212; Get the number of joystick hats</DT 128 >&nbsp;--&nbsp;Get the number of joystick hats</DT
126 ><DT 129 ><DT
127 ><A 130 ><A
128 HREF="sdljoysticknumbuttons.html" 131 HREF="sdljoysticknumbuttons.html"
129 >SDL_JoystickNumButtons</A 132 >SDL_JoystickNumButtons</A
130 > &#8212; Get the number of joysitck buttons</DT 133 >&nbsp;--&nbsp;Get the number of joysitck buttons</DT
131 ><DT 134 ><DT
132 ><A 135 ><A
133 HREF="sdljoystickupdate.html" 136 HREF="sdljoystickupdate.html"
134 >SDL_JoystickUpdate</A 137 >SDL_JoystickUpdate</A
135 > &#8212; Updates the state of all joysticks</DT 138 >&nbsp;--&nbsp;Updates the state of all joysticks</DT
136 ><DT 139 ><DT
137 ><A 140 ><A
138 HREF="sdljoystickgetaxis.html" 141 HREF="sdljoystickgetaxis.html"
139 >SDL_JoystickGetAxis</A 142 >SDL_JoystickGetAxis</A
140 > &#8212; Get the current state of an axis</DT 143 >&nbsp;--&nbsp;Get the current state of an axis</DT
141 ><DT 144 ><DT
142 ><A 145 ><A
143 HREF="sdljoystickgethat.html" 146 HREF="sdljoystickgethat.html"
144 >SDL_JoystickGetHat</A 147 >SDL_JoystickGetHat</A
145 > &#8212; Get the current state of a joystick hat</DT 148 >&nbsp;--&nbsp;Get the current state of a joystick hat</DT
146 ><DT 149 ><DT
147 ><A 150 ><A
148 HREF="sdljoystickgetbutton.html" 151 HREF="sdljoystickgetbutton.html"
149 >SDL_JoystickGetButton</A 152 >SDL_JoystickGetButton</A
150 > &#8212; Get the current state of a given button on a given joystick</DT 153 >&nbsp;--&nbsp;Get the current state of a given button on a given joystick</DT
151 ><DT 154 ><DT
152 ><A 155 ><A
153 HREF="sdljoystickgetball.html" 156 HREF="sdljoystickgetball.html"
154 >SDL_JoystickGetBall</A 157 >SDL_JoystickGetBall</A
155 > &#8212; Get relative trackball motion</DT 158 >&nbsp;--&nbsp;Get relative trackball motion</DT
156 ><DT 159 ><DT
157 ><A 160 ><A
158 HREF="sdljoystickclose.html" 161 HREF="sdljoystickclose.html"
159 >SDL_JoystickClose</A 162 >SDL_JoystickClose</A
160 > &#8212; Closes a previously opened joystick</DT 163 >&nbsp;--&nbsp;Closes a previously opened joystick</DT
161 ></DL 164 ></DL
162 ></DIV 165 ></DIV
163 ><P 166 ><P
164 >Joysticks, and other similar input devices, have a very strong role in game playing and SDL provides comprehensive support for them. Axes, Buttons, POV Hats and trackballs are all supported.</P 167 >Joysticks, and other similar input devices, have a very strong role in game playing and SDL provides comprehensive support for them. Axes, Buttons, POV Hats and trackballs are all supported.</P
165 ><P 168 ><P
198 ><BLOCKQUOTE 201 ><BLOCKQUOTE
199 CLASS="NOTE" 202 CLASS="NOTE"
200 ><P 203 ><P
201 ><B 204 ><B
202 >Note: </B 205 >Note: </B
203 >If you are <I 206 >If you are <SPAN
207 CLASS="emphasis"
208 ><I
204 CLASS="EMPHASIS" 209 CLASS="EMPHASIS"
205 >not</I 210 >not</I
211 ></SPAN
206 > handling the joystick via the event queue then you must explicitly request a joystick update by calling <A 212 > handling the joystick via the event queue then you must explicitly request a joystick update by calling <A
207 HREF="sdljoystickupdate.html" 213 HREF="sdljoystickupdate.html"
208 ><TT 214 ><TT
209 CLASS="FUNCTION" 215 CLASS="FUNCTION"
210 >SDL_JoystickUpdate</TT 216 >SDL_JoystickUpdate</TT
226 ><DIV 232 ><DIV
227 CLASS="NAVFOOTER" 233 CLASS="NAVFOOTER"
228 ><HR 234 ><HR
229 ALIGN="LEFT" 235 ALIGN="LEFT"
230 WIDTH="100%"><TABLE 236 WIDTH="100%"><TABLE
237 SUMMARY="Footer navigation table"
231 WIDTH="100%" 238 WIDTH="100%"
232 BORDER="0" 239 BORDER="0"
233 CELLPADDING="0" 240 CELLPADDING="0"
234 CELLSPACING="0" 241 CELLSPACING="0"
235 ><TR 242 ><TR
237 WIDTH="33%" 244 WIDTH="33%"
238 ALIGN="left" 245 ALIGN="left"
239 VALIGN="top" 246 VALIGN="top"
240 ><A 247 ><A
241 HREF="sdljoystickeventstate.html" 248 HREF="sdljoystickeventstate.html"
249 ACCESSKEY="P"
242 >Prev</A 250 >Prev</A
243 ></TD 251 ></TD
244 ><TD 252 ><TD
245 WIDTH="34%" 253 WIDTH="34%"
246 ALIGN="center" 254 ALIGN="center"
247 VALIGN="top" 255 VALIGN="top"
248 ><A 256 ><A
249 HREF="index.html" 257 HREF="index.html"
258 ACCESSKEY="H"
250 >Home</A 259 >Home</A
251 ></TD 260 ></TD
252 ><TD 261 ><TD
253 WIDTH="33%" 262 WIDTH="33%"
254 ALIGN="right" 263 ALIGN="right"
255 VALIGN="top" 264 VALIGN="top"
256 ><A 265 ><A
257 HREF="sdlnumjoysticks.html" 266 HREF="sdlnumjoysticks.html"
267 ACCESSKEY="N"
258 >Next</A 268 >Next</A
259 ></TD 269 ></TD
260 ></TR 270 ></TR
261 ><TR 271 ><TR
262 ><TD 272 ><TD
268 WIDTH="34%" 278 WIDTH="34%"
269 ALIGN="center" 279 ALIGN="center"
270 VALIGN="top" 280 VALIGN="top"
271 ><A 281 ><A
272 HREF="reference.html" 282 HREF="reference.html"
283 ACCESSKEY="U"
273 >Up</A 284 >Up</A
274 ></TD 285 ></TD
275 ><TD 286 ><TD
276 WIDTH="33%" 287 WIDTH="33%"
277 ALIGN="right" 288 ALIGN="right"