comparison 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
comparison
equal deleted inserted replaced
628:e561e8752d33 629:3fa401bb4bb5
737 element = device->firstButton; 737 element = device->firstButton;
738 i = 0; 738 i = 0;
739 while (element) 739 while (element)
740 { 740 {
741 value = HIDGetElementValue(device, element); 741 value = HIDGetElementValue(device, element);
742 if (value > 1) /* handle pressure-sensitive buttons */
743 value = 1;
742 if ( value != joystick->buttons[i] ) 744 if ( value != joystick->buttons[i] )
743 SDL_PrivateJoystickButton(joystick, i, value); 745 SDL_PrivateJoystickButton(joystick, i, value);
744 element = element->pNext; 746 element = element->pNext;
745 ++i; 747 ++i;
746 } 748 }
747 749
748 element = device->firstHat; 750 element = device->firstHat;
749 i = 0; 751 i = 0;
750 while (element) 752 while (element)
751 { 753 {
752 Uint8 pos = 0; 754 Uint8 pos = 0;