src/joystick/linux/SDL_sysjoystick.c
branchSDL-1.2
changeset 5561 62269926f506
parent 5316 6bb01861c4c0
child 6122 7ba8d4c1b11d
equal deleted inserted replaced
5560:98ae43d3d2f4 5561:62269926f506
   701 				joystick->hwdata->key_map[i-BTN_MISC] =
   701 				joystick->hwdata->key_map[i-BTN_MISC] =
   702 						joystick->nbuttons;
   702 						joystick->nbuttons;
   703 				++joystick->nbuttons;
   703 				++joystick->nbuttons;
   704 			}
   704 			}
   705 		}
   705 		}
   706 		for ( i=0; i<ABS_MAX; ++i ) {
   706 		for ( i=0; i<ABS_MISC; ++i ) {
   707 			/* Skip hats */
   707 			/* Skip hats */
   708 			if ( i == ABS_HAT0X ) {
   708 			if ( i == ABS_HAT0X ) {
   709 				i = ABS_HAT3Y;
   709 				i = ABS_HAT3Y;
   710 				continue;
   710 				continue;
   711 			}
   711 			}