Mercurial > sdl-ios-xcode
changeset 629:3fa401bb4bb5
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 29 May 2003 04:37:17 +0000 |
parents | e561e8752d33 |
children | 550bccdf04bd |
files | src/joystick/darwin/SDL_sysjoystick.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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)