Mercurial > sdl-ios-xcode
diff src/haptic/darwin/SDL_syshaptic.c @ 2556:fe346eddd3fb gsoc2008_force_feedback
Updated button trigger stuff.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Wed, 30 Jul 2008 15:00:45 +0000 |
parents | f5bcc926bac4 |
children | 30778d9d8bff |
line wrap: on
line diff
--- 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;