src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2603 a84ce5ae8936
parent 2565 698c776c642f
child 2604 4eee4d565368
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 )