Skip to content

Commit

Permalink
Fixed joystick detection problem on Windows XP (thanks Maciej!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 15, 2002
1 parent a816462 commit 25d0667
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/joystick/win32/SDL_mmjoystick.c
Expand Up @@ -38,7 +38,7 @@ static char rcsid =
#include <windows.h>
#include <mmsystem.h>

#define MAX_JOYSTICKS 2 /* only 2 are supported in the multimedia API */
#define MAX_JOYSTICKS 16
#define MAX_AXES 6 /* each joystick can have up to 6 axes */
#define MAX_BUTTONS 32 /* and 32 buttons */
#define AXIS_MIN -32768 /* minimum value for axis coordinate */
Expand Down Expand Up @@ -91,8 +91,10 @@ int SDL_SYS_JoystickInit(void)
}


SYS_JoystickID[0] = JOYSTICKID1;
SYS_JoystickID[1] = JOYSTICKID2;
for ( i = 0; i < MAX_JOYSTICKS; i++ ) {
SYS_JoystickID[i] = JOYSTICKID1 + i;
}


for ( i = 0; (i < maxdevs); ++i ) {

Expand Down

0 comments on commit 25d0667

Please sign in to comment.