comparison 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
comparison
equal deleted inserted replaced
2555:f5bcc926bac4 2556:fe346eddd3fb
522 DWORD dwTriggerButton; 522 DWORD dwTriggerButton;
523 523
524 dwTriggerButton = FFEB_NOTRIGGER; 524 dwTriggerButton = FFEB_NOTRIGGER;
525 525
526 if (button != 0) { 526 if (button != 0) {
527 dwTriggerButton = FFJOFS_BUTTON(button); 527 dwTriggerButton = FFJOFS_BUTTON(button - 1);
528 } 528 }
529 529
530 return dwTriggerButton; 530 return dwTriggerButton;
531 } 531 }
532 532