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