*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Thu, 29 May 2003 04:37:17 +0000
changeset 629 3fa401bb4bb5
parent 628 e561e8752d33
child 630 550bccdf04bd
*** empty log message ***
src/joystick/darwin/SDL_sysjoystick.c
--- a/src/joystick/darwin/SDL_sysjoystick.c	Thu May 29 04:29:13 2003 +0000
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Thu May 29 04:37:17 2003 +0000
@@ -739,12 +739,14 @@
 	while (element)
 	{
 		value = HIDGetElementValue(device, element);
+        if (value > 1)  /* handle pressure-sensitive buttons */
+            value = 1;
 		if ( value != joystick->buttons[i] )
 			SDL_PrivateJoystickButton(joystick, i, value);
 		element = element->pNext;
 		++i;
 	}
-	
+	    
 	element = device->firstHat;
 	i = 0;
 	while (element)