src/joystick/linux/SDL_sysjoystick.c
branchSDL-1.2
changeset 4394 42012a6afb5b
parent 4352 c8bf421431f9
child 5082 4c3c2599559b
equal deleted inserted replaced
4393:9afe12fb4c41 4394:42012a6afb5b
   698 			if ( i == ABS_HAT0X ) {
   698 			if ( i == ABS_HAT0X ) {
   699 				i = ABS_HAT3Y;
   699 				i = ABS_HAT3Y;
   700 				continue;
   700 				continue;
   701 			}
   701 			}
   702 			if ( test_bit(i, absbit) ) {
   702 			if ( test_bit(i, absbit) ) {
   703 				int values[5];
   703 				int values[6];
   704 
   704 
   705 				if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
   705 				if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
   706 					continue;
   706 					continue;
   707 #ifdef DEBUG_INPUT_EVENTS
   707 #ifdef DEBUG_INPUT_EVENTS
   708 				printf("Joystick has absolute axis: %x\n", i);
   708 				printf("Joystick has absolute axis: %x\n", i);