Fixed building with joysticks disabled
authorSam Lantinga
Mon, 26 Nov 2012 23:58:23 -0800
changeset 67051075e5ff6de0
parent 6704 14e3ac5e1daa
child 6706 b9f5fb1e78b5
Fixed building with joysticks disabled
src/joystick/dummy/SDL_sysjoystick.c
     1.1 --- a/src/joystick/dummy/SDL_sysjoystick.c	Mon Nov 26 23:56:49 2012 -0800
     1.2 +++ b/src/joystick/dummy/SDL_sysjoystick.c	Mon Nov 26 23:58:23 2012 -0800
     1.3 @@ -29,14 +29,11 @@
     1.4  #include "../SDL_joystick_c.h"
     1.5  
     1.6  /* Function to scan the system for joysticks.
     1.7 - * This function should set SDL_numjoysticks to the number of available
     1.8 - * joysticks.  Joystick 0 should be the system default joystick.
     1.9   * It should return 0, or -1 on an unrecoverable fatal error.
    1.10   */
    1.11  int
    1.12  SDL_SYS_JoystickInit(void)
    1.13  {
    1.14 -    SDL_numjoysticks = 0;
    1.15      return (0);
    1.16  }
    1.17