src/joystick/darwin/SDL_sysjoystick.c
changeset 1496 405e20dc004c
parent 1487 dc6b59e925a2
child 1621 f12379c41042
equal deleted inserted replaced
1495:1dd8bf30a109 1496:405e20dc004c
   576 	recDevice *device, *lastDevice;
   576 	recDevice *device, *lastDevice;
   577 	io_object_t ioHIDDeviceObject = 0;
   577 	io_object_t ioHIDDeviceObject = 0;
   578 	
   578 	
   579 	SDL_numjoysticks = 0;
   579 	SDL_numjoysticks = 0;
   580 	
   580 	
   581 	if (!gpDeviceList)
   581 	if (gpDeviceList)
   582 	{
   582 	{
   583 		SDL_SetError("Joystick: Device list already inited.");
   583 		SDL_SetError("Joystick: Device list already inited.");
   584 		return -1;
   584 		return -1;
   585 	}
   585 	}
   586 	
   586