src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2603 a84ce5ae8936
parent 2602 f578389c9ead
child 2604 4eee4d565368
equal deleted inserted replaced
2602:f578389c9ead 2603:a84ce5ae8936
   582          SDL_SetError("Haptic: Unknown direction type.");
   582          SDL_SetError("Haptic: Unknown direction type.");
   583          return -1;
   583          return -1;
   584    }
   584    }
   585 }
   585 }
   586 
   586 
   587 #define CONVERT(x)   (((x)*10000) / 0xFFFF )
   587 #define CONVERT(x)   (((x)*10000) / 0x7FFF)
   588 /*
   588 /*
   589  * Creates the DIEFFECT from a SDL_HapticEffect.
   589  * Creates the DIEFFECT from a SDL_HapticEffect.
   590  */
   590  */
   591 static int
   591 static int
   592 SDL_SYS_ToDIEFFECT( SDL_Haptic * haptic, DIEFFECT * dest, SDL_HapticEffect * src )
   592 SDL_SYS_ToDIEFFECT( SDL_Haptic * haptic, DIEFFECT * dest, SDL_HapticEffect * src )