comparison src/haptic/darwin/SDL_syshaptic.c @ 2603:a84ce5ae8936 gsoc2008_force_feedback

Fixed mistake in CONVERT.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 15:56:35 +0000
parents 698c776c642f
children 4eee4d565368
comparison
equal deleted inserted replaced
2602:f578389c9ead 2603:a84ce5ae8936
569 SDL_SetError("Haptic: Unknown direction type."); 569 SDL_SetError("Haptic: Unknown direction type.");
570 return -1; 570 return -1;
571 } 571 }
572 } 572 }
573 573
574 #define CONVERT(x) (((x)*10000) / 0xFFFF ) 574 #define CONVERT(x) (((x)*10000) / 0x7FFF)
575 /* 575 /*
576 * Creates the FFEFFECT from a SDL_HapticEffect. 576 * Creates the FFEFFECT from a SDL_HapticEffect.
577 */ 577 */
578 static int 578 static int
579 SDL_SYS_ToFFEFFECT( SDL_Haptic * haptic, FFEFFECT * dest, SDL_HapticEffect * src ) 579 SDL_SYS_ToFFEFFECT( SDL_Haptic * haptic, FFEFFECT * dest, SDL_HapticEffect * src )