*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Thu, 29 May 2003 04:37:17 +0000
changeset 6293fa401bb4bb5
parent 628 e561e8752d33
child 630 550bccdf04bd
*** empty log message ***
src/joystick/darwin/SDL_sysjoystick.c
     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)