src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2556 fe346eddd3fb
parent 2555 f5bcc926bac4
child 2557 30778d9d8bff
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 14:50:00 2008 +0000
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 15:00:45 2008 +0000
     1.3 @@ -524,7 +524,7 @@
     1.4     dwTriggerButton = FFEB_NOTRIGGER;
     1.5  
     1.6     if (button != 0) {
     1.7 -      dwTriggerButton = FFJOFS_BUTTON(button);
     1.8 +      dwTriggerButton = FFJOFS_BUTTON(button - 1);
     1.9     }
    1.10  
    1.11     return dwTriggerButton;