*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40630
This commit is contained in:
Sam Lantinga 2003-05-29 04:37:17 +00:00
parent 7705734fbc
commit 35f9bbcbd6

View file

@ -739,12 +739,14 @@ void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick)
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)