src/joystick/linux/SDL_sysjoystick.c
changeset 1752 97f20f2a1d85
parent 1635 92947e3a18db
child 1821 2f381b48b05c
equal deleted inserted replaced
1751:a11c13151840 1752:97f20f2a1d85
   978 	Uint8 other_axis;
   978 	Uint8 other_axis;
   979 
   979 
   980 #ifndef NO_LOGICAL_JOYSTICKS
   980 #ifndef NO_LOGICAL_JOYSTICKS
   981 	if (SDL_joylist[joystick->index].fname == NULL) {
   981 	if (SDL_joylist[joystick->index].fname == NULL) {
   982 		SDL_joylist_head(i, joystick->index);
   982 		SDL_joylist_head(i, joystick->index);
   983 		return JS_HandleEvents(SDL_joylist[i].joy);
   983 		JS_HandleEvents(SDL_joylist[i].joy);
       
   984 		return;
   984 	}
   985 	}
   985 #endif
   986 #endif
   986 
   987 
   987 	while ((len=read(joystick->hwdata->fd, events, (sizeof events))) > 0) {
   988 	while ((len=read(joystick->hwdata->fd, events, (sizeof events))) > 0) {
   988 		len /= sizeof(events[0]);
   989 		len /= sizeof(events[0]);