src/joystick/darwin/SDL_sysjoystick.c
changeset 629 3fa401bb4bb5
parent 623 477917048b91
child 769 b8d311d90021
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Thu May 29 04:29:13 2003 +0000
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Thu May 29 04:37:17 2003 +0000
     1.3 @@ -739,12 +739,14 @@
     1.4  	while (element)
     1.5  	{
     1.6  		value = HIDGetElementValue(device, element);
     1.7 +        if (value > 1)  /* handle pressure-sensitive buttons */
     1.8 +            value = 1;
     1.9  		if ( value != joystick->buttons[i] )
    1.10  			SDL_PrivateJoystickButton(joystick, i, value);
    1.11  		element = element->pNext;
    1.12  		++i;
    1.13  	}
    1.14 -	
    1.15 +	    
    1.16  	element = device->firstHat;
    1.17  	i = 0;
    1.18  	while (element)