diff src/joystick/darwin/SDL_sysjoystick.c @ 629:3fa401bb4bb5

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Thu, 29 May 2003 04:37:17 +0000
parents 477917048b91
children b8d311d90021
line wrap: on
line diff
--- 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)