0
|
1 <HTML
|
|
2 ><HEAD
|
|
3 ><TITLE
|
|
4 >SDL_NumJoysticks</TITLE
|
|
5 ><META
|
|
6 NAME="GENERATOR"
|
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.61
|
|
8 "><LINK
|
|
9 REL="HOME"
|
|
10 TITLE="SDL Library Documentation"
|
|
11 HREF="index.html"><LINK
|
|
12 REL="UP"
|
|
13 TITLE="Joystick"
|
|
14 HREF="joystick.html"><LINK
|
|
15 REL="PREVIOUS"
|
|
16 TITLE="Joystick"
|
|
17 HREF="joystick.html"><LINK
|
|
18 REL="NEXT"
|
|
19 TITLE="SDL_JoystickName"
|
|
20 HREF="sdljoystickname.html"></HEAD
|
|
21 ><BODY
|
|
22 CLASS="REFENTRY"
|
|
23 BGCOLOR="#FFF8DC"
|
|
24 TEXT="#000000"
|
|
25 LINK="#0000ee"
|
|
26 VLINK="#551a8b"
|
|
27 ALINK="#ff0000"
|
|
28 ><DIV
|
|
29 CLASS="NAVHEADER"
|
|
30 ><TABLE
|
|
31 WIDTH="100%"
|
|
32 BORDER="0"
|
|
33 CELLPADDING="0"
|
|
34 CELLSPACING="0"
|
|
35 ><TR
|
|
36 ><TH
|
|
37 COLSPAN="3"
|
|
38 ALIGN="center"
|
|
39 >SDL Library Documentation</TH
|
|
40 ></TR
|
|
41 ><TR
|
|
42 ><TD
|
|
43 WIDTH="10%"
|
|
44 ALIGN="left"
|
|
45 VALIGN="bottom"
|
|
46 ><A
|
|
47 HREF="joystick.html"
|
|
48 >Prev</A
|
|
49 ></TD
|
|
50 ><TD
|
|
51 WIDTH="80%"
|
|
52 ALIGN="center"
|
|
53 VALIGN="bottom"
|
|
54 ></TD
|
|
55 ><TD
|
|
56 WIDTH="10%"
|
|
57 ALIGN="right"
|
|
58 VALIGN="bottom"
|
|
59 ><A
|
|
60 HREF="sdljoystickname.html"
|
|
61 >Next</A
|
|
62 ></TD
|
|
63 ></TR
|
|
64 ></TABLE
|
|
65 ><HR
|
|
66 ALIGN="LEFT"
|
|
67 WIDTH="100%"></DIV
|
|
68 ><H1
|
|
69 ><A
|
|
70 NAME="SDLNUMJOYSTICKS"
|
|
71 >SDL_NumJoysticks</A
|
|
72 ></H1
|
|
73 ><DIV
|
|
74 CLASS="REFNAMEDIV"
|
|
75 ><A
|
|
76 NAME="AEN5417"
|
|
77 ></A
|
|
78 ><H2
|
|
79 >Name</H2
|
|
80 >SDL_NumJoysticks -- Count available joysticks.</DIV
|
|
81 ><DIV
|
|
82 CLASS="REFSYNOPSISDIV"
|
|
83 ><A
|
|
84 NAME="AEN5420"
|
|
85 ></A
|
|
86 ><H2
|
|
87 >Synopsis</H2
|
|
88 ><DIV
|
|
89 CLASS="FUNCSYNOPSIS"
|
|
90 ><A
|
|
91 NAME="AEN5421"
|
|
92 ></A
|
|
93 ><P
|
|
94 ></P
|
|
95 ><PRE
|
|
96 CLASS="FUNCSYNOPSISINFO"
|
|
97 >#include "SDL.h"</PRE
|
|
98 ><P
|
|
99 ><CODE
|
|
100 ><CODE
|
|
101 CLASS="FUNCDEF"
|
|
102 >int <B
|
|
103 CLASS="FSFUNC"
|
|
104 >SDL_NumJoysticks</B
|
|
105 ></CODE
|
|
106 >(void);</CODE
|
|
107 ></P
|
|
108 ><P
|
|
109 ></P
|
|
110 ></DIV
|
|
111 ></DIV
|
|
112 ><DIV
|
|
113 CLASS="REFSECT1"
|
|
114 ><A
|
|
115 NAME="AEN5427"
|
|
116 ></A
|
|
117 ><H2
|
|
118 >Description</H2
|
|
119 ><P
|
|
120 >Counts the number of joysticks attached to the system.</P
|
|
121 ></DIV
|
|
122 ><DIV
|
|
123 CLASS="REFSECT1"
|
|
124 ><A
|
|
125 NAME="AEN5430"
|
|
126 ></A
|
|
127 ><H2
|
|
128 >Return Value</H2
|
|
129 ><P
|
|
130 >Returns the number of attached joysticks</P
|
|
131 ></DIV
|
|
132 ><DIV
|
|
133 CLASS="REFSECT1"
|
|
134 ><A
|
|
135 NAME="AEN5433"
|
|
136 ></A
|
|
137 ><H2
|
|
138 >See Also</H2
|
|
139 ><P
|
|
140 ><A
|
|
141 HREF="sdljoystickname.html"
|
|
142 ><TT
|
|
143 CLASS="FUNCTION"
|
|
144 >SDL_JoystickName</TT
|
|
145 ></A
|
|
146 >,
|
|
147 <A
|
|
148 HREF="sdljoystickopen.html"
|
|
149 ><TT
|
|
150 CLASS="FUNCTION"
|
|
151 >SDL_JoystickOpen</TT
|
|
152 ></A
|
|
153 ></P
|
|
154 ></DIV
|
|
155 ><DIV
|
|
156 CLASS="NAVFOOTER"
|
|
157 ><HR
|
|
158 ALIGN="LEFT"
|
|
159 WIDTH="100%"><TABLE
|
|
160 WIDTH="100%"
|
|
161 BORDER="0"
|
|
162 CELLPADDING="0"
|
|
163 CELLSPACING="0"
|
|
164 ><TR
|
|
165 ><TD
|
|
166 WIDTH="33%"
|
|
167 ALIGN="left"
|
|
168 VALIGN="top"
|
|
169 ><A
|
|
170 HREF="joystick.html"
|
|
171 >Prev</A
|
|
172 ></TD
|
|
173 ><TD
|
|
174 WIDTH="34%"
|
|
175 ALIGN="center"
|
|
176 VALIGN="top"
|
|
177 ><A
|
|
178 HREF="index.html"
|
|
179 >Home</A
|
|
180 ></TD
|
|
181 ><TD
|
|
182 WIDTH="33%"
|
|
183 ALIGN="right"
|
|
184 VALIGN="top"
|
|
185 ><A
|
|
186 HREF="sdljoystickname.html"
|
|
187 >Next</A
|
|
188 ></TD
|
|
189 ></TR
|
|
190 ><TR
|
|
191 ><TD
|
|
192 WIDTH="33%"
|
|
193 ALIGN="left"
|
|
194 VALIGN="top"
|
|
195 >Joystick</TD
|
|
196 ><TD
|
|
197 WIDTH="34%"
|
|
198 ALIGN="center"
|
|
199 VALIGN="top"
|
|
200 ><A
|
|
201 HREF="joystick.html"
|
|
202 >Up</A
|
|
203 ></TD
|
|
204 ><TD
|
|
205 WIDTH="33%"
|
|
206 ALIGN="right"
|
|
207 VALIGN="top"
|
|
208 >SDL_JoystickName</TD
|
|
209 ></TR
|
|
210 ></TABLE
|
|
211 ></DIV
|
|
212 ></BODY
|
|
213 ></HTML
|
|
214 > |