Fixed building with joysticks disabled
authorSam Lantinga <slouken@libsdl.org>
Mon, 26 Nov 2012 23:58:23 -0800
changeset 6705 1075e5ff6de0
parent 6704 14e3ac5e1daa
child 6706 b9f5fb1e78b5
Fixed building with joysticks disabled
src/joystick/dummy/SDL_sysjoystick.c
--- a/src/joystick/dummy/SDL_sysjoystick.c	Mon Nov 26 23:56:49 2012 -0800
+++ b/src/joystick/dummy/SDL_sysjoystick.c	Mon Nov 26 23:58:23 2012 -0800
@@ -29,14 +29,11 @@
 #include "../SDL_joystick_c.h"
 
 /* Function to scan the system for joysticks.
- * This function should set SDL_numjoysticks to the number of available
- * joysticks.  Joystick 0 should be the system default joystick.
  * It should return 0, or -1 on an unrecoverable fatal error.
  */
 int
 SDL_SYS_JoystickInit(void)
 {
-    SDL_numjoysticks = 0;
     return (0);
 }