src/joystick/os2/SDL_sysjoystick.c
changeset 1375 3793c4b34a92
parent 1361 19418e4422cb
child 1379 c0a74f199ecf
equal deleted inserted replaced
1374:998b7f9a287a 1375:3793c4b34a92
   290 				}
   290 				}
   291 			}
   291 			}
   292 		/* Hack to define Joystick Port Names */
   292 		/* Hack to define Joystick Port Names */
   293 		if ( numdevs > maxdevs ) numdevs = maxdevs;
   293 		if ( numdevs > maxdevs ) numdevs = maxdevs;
   294 		for (i=0; i<numdevs; i++) {
   294 		for (i=0; i<numdevs; i++) {
   295 			SDL_sprintf (SYS_JoyData[i].szDeviceName, SDL_arraysize(szDeviceName), "Default Joystick %c", 'A'+SYS_JoyData[i].id);
   295 			SDL_snprintf (SYS_JoyData[i].szDeviceName, SDL_arraysize(szDeviceName), "Default Joystick %c", 'A'+SYS_JoyData[i].id);
   296 		}
   296 		}
   297 	}
   297 	}
   298 /* Return the number of devices found */
   298 /* Return the number of devices found */
   299 return(numdevs);
   299 return(numdevs);
   300 }
   300 }