1<HTML 2><HEAD 3><TITLE 4>SDL_JoystickOpened</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="SDL Library Documentation" 11HREF="index.html"><LINK 12REL="UP" 13TITLE="Joystick" 14HREF="joystick.html"><LINK 15REL="PREVIOUS" 16TITLE="SDL_JoystickOpen" 17HREF="sdljoystickopen.html"><LINK 18REL="NEXT" 19TITLE="SDL_JoystickIndex" 20HREF="sdljoystickindex.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFF8DC" 24TEXT="#000000" 25LINK="#0000ee" 26VLINK="#551a8b" 27ALINK="#ff0000" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31SUMMARY="Header navigation table" 32WIDTH="100%" 33BORDER="0" 34CELLPADDING="0" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="3" 39ALIGN="center" 40>SDL Library Documentation</TH 41></TR 42><TR 43><TD 44WIDTH="10%" 45ALIGN="left" 46VALIGN="bottom" 47><A 48HREF="sdljoystickopen.html" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56></TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="sdljoystickindex.html" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="SDLJOYSTICKOPENED" 74></A 75>SDL_JoystickOpened</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN6128" 80></A 81><H2 82>Name</H2 83>SDL_JoystickOpened -- Determine if a joystick has been opened</DIV 84><DIV 85CLASS="REFSYNOPSISDIV" 86><A 87NAME="AEN6131" 88></A 89><H2 90>Synopsis</H2 91><DIV 92CLASS="FUNCSYNOPSIS" 93><A 94NAME="AEN6132" 95></A 96><P 97></P 98><PRE 99CLASS="FUNCSYNOPSISINFO" 100>#include "SDL.h"</PRE 101><P 102><CODE 103><CODE 104CLASS="FUNCDEF" 105>int <B 106CLASS="FSFUNC" 107>SDL_JoystickOpened</B 108></CODE 109>(int index);</CODE 110></P 111><P 112></P 113></DIV 114></DIV 115><DIV 116CLASS="REFSECT1" 117><A 118NAME="AEN6138" 119></A 120><H2 121>Description</H2 122><P 123>Determines whether a joystick has already been opened within the application. <TT 124CLASS="PARAMETER" 125><I 126>index</I 127></TT 128> refers to the N'th joystick on the system.</P 129></DIV 130><DIV 131CLASS="REFSECT1" 132><A 133NAME="AEN6142" 134></A 135><H2 136>Return Value</H2 137><P 138>Returns <SPAN 139CLASS="RETURNVALUE" 140>1</SPAN 141> if the joystick has been opened, or <SPAN 142CLASS="RETURNVALUE" 143>0</SPAN 144> if it has not.</P 145></DIV 146><DIV 147CLASS="REFSECT1" 148><A 149NAME="AEN6147" 150></A 151><H2 152>See Also</H2 153><P 154><A 155HREF="sdljoystickopen.html" 156><TT 157CLASS="FUNCTION" 158>SDL_JoystickOpen</TT 159></A 160>, 161<A 162HREF="sdljoystickclose.html" 163><TT 164CLASS="FUNCTION" 165>SDL_JoystickClose</TT 166></A 167></P 168></DIV 169><DIV 170CLASS="NAVFOOTER" 171><HR 172ALIGN="LEFT" 173WIDTH="100%"><TABLE 174SUMMARY="Footer navigation table" 175WIDTH="100%" 176BORDER="0" 177CELLPADDING="0" 178CELLSPACING="0" 179><TR 180><TD 181WIDTH="33%" 182ALIGN="left" 183VALIGN="top" 184><A 185HREF="sdljoystickopen.html" 186ACCESSKEY="P" 187>Prev</A 188></TD 189><TD 190WIDTH="34%" 191ALIGN="center" 192VALIGN="top" 193><A 194HREF="index.html" 195ACCESSKEY="H" 196>Home</A 197></TD 198><TD 199WIDTH="33%" 200ALIGN="right" 201VALIGN="top" 202><A 203HREF="sdljoystickindex.html" 204ACCESSKEY="N" 205>Next</A 206></TD 207></TR 208><TR 209><TD 210WIDTH="33%" 211ALIGN="left" 212VALIGN="top" 213>SDL_JoystickOpen</TD 214><TD 215WIDTH="34%" 216ALIGN="center" 217VALIGN="top" 218><A 219HREF="joystick.html" 220ACCESSKEY="U" 221>Up</A 222></TD 223><TD 224WIDTH="33%" 225ALIGN="right" 226VALIGN="top" 227>SDL_JoystickIndex</TD 228></TR 229></TABLE 230></DIV 231></BODY 232></HTML 233>