comparison docs/html/sdljoystickname.html @ 181:e5bc29de3f0a

Updated from the SDL Documentation Project
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Sep 2001 02:41:09 +0000
parents 55f1f1b3e27d
children 355632dca928
comparison
equal deleted inserted replaced
180:578815880307 181:e5bc29de3f0a
71 >SDL_JoystickName</A 71 >SDL_JoystickName</A
72 ></H1 72 ></H1
73 ><DIV 73 ><DIV
74 CLASS="REFNAMEDIV" 74 CLASS="REFNAMEDIV"
75 ><A 75 ><A
76 NAME="AEN5519" 76 NAME="AEN5678"
77 ></A 77 ></A
78 ><H2 78 ><H2
79 >Name</H2 79 >Name</H2
80 >SDL_JoystickName&nbsp;--&nbsp;Get joystick name.</DIV 80 >SDL_JoystickName&nbsp;--&nbsp;Get joystick name.</DIV
81 ><DIV 81 ><DIV
82 CLASS="REFSYNOPSISDIV" 82 CLASS="REFSYNOPSISDIV"
83 ><A 83 ><A
84 NAME="AEN5522" 84 NAME="AEN5681"
85 ></A 85 ></A
86 ><H2 86 ><H2
87 >Synopsis</H2 87 >Synopsis</H2
88 ><DIV 88 ><DIV
89 CLASS="FUNCSYNOPSIS" 89 CLASS="FUNCSYNOPSIS"
90 ><A 90 ><A
91 NAME="AEN5523" 91 NAME="AEN5682"
92 ></A 92 ></A
93 ><P 93 ><P
94 ></P 94 ></P
95 ><PRE 95 ><PRE
96 CLASS="FUNCSYNOPSISINFO" 96 CLASS="FUNCSYNOPSISINFO"
110 ></DIV 110 ></DIV
111 ></DIV 111 ></DIV
112 ><DIV 112 ><DIV
113 CLASS="REFSECT1" 113 CLASS="REFSECT1"
114 ><A 114 ><A
115 NAME="AEN5529" 115 NAME="AEN5688"
116 ></A 116 ></A
117 ><H2 117 ><H2
118 >Description</H2 118 >Description</H2
119 ><P 119 ><P
120 >Get the implementation dependent name of joystick. The <TT 120 >Get the implementation dependent name of joystick. The <TT
125 > parameter refers to the N'th joystick on the system.</P 125 > parameter refers to the N'th joystick on the system.</P
126 ></DIV 126 ></DIV
127 ><DIV 127 ><DIV
128 CLASS="REFSECT1" 128 CLASS="REFSECT1"
129 ><A 129 ><A
130 NAME="AEN5533" 130 NAME="AEN5692"
131 ></A 131 ></A
132 ><H2 132 ><H2
133 >Return Value</H2 133 >Return Value</H2
134 ><P 134 ><P
135 >Returns a char pointer to the joystick name.</P 135 >Returns a char pointer to the joystick name.</P
136 ></DIV 136 ></DIV
137 ><DIV 137 ><DIV
138 CLASS="REFSECT1" 138 CLASS="REFSECT1"
139 ><A 139 ><A
140 NAME="AEN5536" 140 NAME="AEN5695"
141 ></A 141 ></A
142 ><H2 142 ><H2
143 >Examples</H2 143 >Examples</H2
144 ><P 144 ><P
145 ><PRE 145 ><PRE
147 >/* Print the names of all attached joysticks */ 147 >/* Print the names of all attached joysticks */
148 int num_joy, i; 148 int num_joy, i;
149 num_joy=SDL_NumJoysticks(); 149 num_joy=SDL_NumJoysticks();
150 printf("%d joysticks found\n", num_joy); 150 printf("%d joysticks found\n", num_joy);
151 for(i=0;i&#60;num_joy;i++) 151 for(i=0;i&#60;num_joy;i++)
152 printf("%s\n", SDL_JoystickName(i);</PRE 152 printf("%s\n", SDL_JoystickName(i));</PRE
153 ></P 153 ></P
154 ></DIV 154 ></DIV
155 ><DIV 155 ><DIV
156 CLASS="REFSECT1" 156 CLASS="REFSECT1"
157 ><A 157 ><A
158 NAME="AEN5540" 158 NAME="AEN5699"
159 ></A 159 ></A
160 ><H2 160 ><H2
161 >See Also</H2 161 >See Also</H2
162 ><P 162 ><P
163 ><A 163 ><A