title: What's the SDL-2.0 corresponding function for 'SDL_JoystickOpened'?
body: <p>I tried to use <code>SDL_JoystickOpened()</code> in a SDL-2.0 code, but I got the error message <em><code>SDL_JoystickOpened</code> was not declared in this scope</em>.</p>
  
  <p>I've searched and found that <code>SDL_JoystickOpened()</code> no longer exists in SDL-2.0, but I didn't find the function that replaced it. Can anyone please tell me how can I replace <code>SDL_JoystickOpened()</code> in this piece of code:</p>
  
  <pre><code>SDL_Joystick *joy = SDL_JoystickOpen(0);
  if (SDL_JoystickOpened(0) == 1)
  {
      // do something
  }
  </code></pre>
  
  <p>Thanks.</p>