1 <HTML 2 ><HEAD 3 ><TITLE 4 >SDL_JoystickNumButtons</TITLE 5 ><META 6 NAME="GENERATOR" 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 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="SDL_JoystickNumHats" 17 HREF="sdljoysticknumhats.html"><LINK 18 REL="NEXT" 19 TITLE="SDL_JoystickUpdate" 20 HREF="sdljoystickupdate.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 SUMMARY="Header navigation table" 32 WIDTH="100%" 33 BORDER="0" 34 CELLPADDING="0" 35 CELLSPACING="0" 36 ><TR 37 ><TH 38 COLSPAN="3" 39 ALIGN="center" 40 >SDL Library Documentation</TH 41 ></TR 42 ><TR 43 ><TD 44 WIDTH="10%" 45 ALIGN="left" 46 VALIGN="bottom" 47 ><A 48 HREF="sdljoysticknumhats.html" 49 ACCESSKEY="P" 50 >Prev</A 51 ></TD 52 ><TD 53 WIDTH="80%" 54 ALIGN="center" 55 VALIGN="bottom" 56 ></TD 57 ><TD 58 WIDTH="10%" 59 ALIGN="right" 60 VALIGN="bottom" 61 ><A 62 HREF="sdljoystickupdate.html" 63 ACCESSKEY="N" 64 >Next</A 65 ></TD 66 ></TR 67 ></TABLE 68 ><HR 69 ALIGN="LEFT" 70 WIDTH="100%"></DIV 71 ><H1 72 ><A 73 NAME="SDLJOYSTICKNUMBUTTONS" 74 ></A 75 >SDL_JoystickNumButtons</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN6268" 80 ></A 81 ><H2 82 >Name</H2 83 >SDL_JoystickNumButtons -- Get the number of joysitck buttons</DIV 84 ><DIV 85 CLASS="REFSYNOPSISDIV" 86 ><A 87 NAME="AEN6271" 88 ></A 89 ><H2 90 >Synopsis</H2 91 ><DIV 92 CLASS="FUNCSYNOPSIS" 93 ><A 94 NAME="AEN6272" 95 ></A 96 ><P 97 ></P 98 ><PRE 99 CLASS="FUNCSYNOPSISINFO" 100 >#include "SDL.h"</PRE 101 ><P 102 ><CODE 103 ><CODE 104 CLASS="FUNCDEF" 105 >int <B 106 CLASS="FSFUNC" 107 >SDL_JoystickNumButtons</B 108 ></CODE 109 >(SDL_Joystick *joystick);</CODE 110 ></P 111 ><P 112 ></P 113 ></DIV 114 ></DIV 115 ><DIV 116 CLASS="REFSECT1" 117 ><A 118 NAME="AEN6278" 119 ></A 120 ><H2 121 >Description</H2 122 ><P 123 >Return the number of buttons available from a previously opened <SPAN 124 CLASS="STRUCTNAME" 125 >SDL_Joystick</SPAN 126 >.</P 127 ></DIV 128 ><DIV 129 CLASS="REFSECT1" 130 ><A 131 NAME="AEN6282" 132 ></A 133 ><H2 134 >Return Value</H2 135 ><P 136 >Number of buttons.</P 137 ></DIV 138 ><DIV 139 CLASS="REFSECT1" 140 ><A 141 NAME="AEN6285" 142 ></A 143 ><H2 144 >See Also</H2 145 ><P 146 ><A 147 HREF="sdljoystickgetbutton.html" 148 ><TT 149 CLASS="FUNCTION" 150 >SDL_JoystickGetButton</TT 151 ></A 152 >, 153 <A 154 HREF="sdljoystickopen.html" 155 ><TT 156 CLASS="FUNCTION" 157 >SDL_JoystickOpen</TT 158 ></A 159 ></P 160 ></DIV 161 ><DIV 162 CLASS="NAVFOOTER" 163 ><HR 164 ALIGN="LEFT" 165 WIDTH="100%"><TABLE 166 SUMMARY="Footer navigation table" 167 WIDTH="100%" 168 BORDER="0" 169 CELLPADDING="0" 170 CELLSPACING="0" 171 ><TR 172 ><TD 173 WIDTH="33%" 174 ALIGN="left" 175 VALIGN="top" 176 ><A 177 HREF="sdljoysticknumhats.html" 178 ACCESSKEY="P" 179 >Prev</A 180 ></TD 181 ><TD 182 WIDTH="34%" 183 ALIGN="center" 184 VALIGN="top" 185 ><A 186 HREF="index.html" 187 ACCESSKEY="H" 188 >Home</A 189 ></TD 190 ><TD 191 WIDTH="33%" 192 ALIGN="right" 193 VALIGN="top" 194 ><A 195 HREF="sdljoystickupdate.html" 196 ACCESSKEY="N" 197 >Next</A 198 ></TD 199 ></TR 200 ><TR 201 ><TD 202 WIDTH="33%" 203 ALIGN="left" 204 VALIGN="top" 205 >SDL_JoystickNumHats</TD 206 ><TD 207 WIDTH="34%" 208 ALIGN="center" 209 VALIGN="top" 210 ><A 211 HREF="joystick.html" 212 ACCESSKEY="U" 213 >Up</A 214 ></TD 215 ><TD 216 WIDTH="33%" 217 ALIGN="right" 218 VALIGN="top" 219 >SDL_JoystickUpdate</TD 220 ></TR 221 ></TABLE 222 ></DIV 223 ></BODY 224 ></HTML 225 >