src/haptic/windows/SDL_syshaptic.c
changeset 7677 871d43c6968a
parent 7623 fe1b8a78de0b
child 7678 286c42d7c5ed
equal deleted inserted replaced
7676:013483acb374 7677:871d43c6968a
   302     EFFECT_TEST(GUID_Friction, SDL_HAPTIC_FRICTION);
   302     EFFECT_TEST(GUID_Friction, SDL_HAPTIC_FRICTION);
   303     EFFECT_TEST(GUID_ConstantForce, SDL_HAPTIC_CONSTANT);
   303     EFFECT_TEST(GUID_ConstantForce, SDL_HAPTIC_CONSTANT);
   304     EFFECT_TEST(GUID_CustomForce, SDL_HAPTIC_CUSTOM);
   304     EFFECT_TEST(GUID_CustomForce, SDL_HAPTIC_CUSTOM);
   305     EFFECT_TEST(GUID_Sine, SDL_HAPTIC_SINE);
   305     EFFECT_TEST(GUID_Sine, SDL_HAPTIC_SINE);
   306     /* !!! FIXME: put this back when we have more bits in 2.1 */
   306     /* !!! FIXME: put this back when we have more bits in 2.1 */
   307     /*EFFECT_TEST(GUID_Square, SDL_HAPTIC_SQUARE);*/
   307     /*EFFECT_TEST(GUID_Square, SDL_HAPTIC_SQUARE); */
   308     EFFECT_TEST(GUID_Triangle, SDL_HAPTIC_TRIANGLE);
   308     EFFECT_TEST(GUID_Triangle, SDL_HAPTIC_TRIANGLE);
   309     EFFECT_TEST(GUID_SawtoothUp, SDL_HAPTIC_SAWTOOTHUP);
   309     EFFECT_TEST(GUID_SawtoothUp, SDL_HAPTIC_SAWTOOTHUP);
   310     EFFECT_TEST(GUID_SawtoothDown, SDL_HAPTIC_SAWTOOTHDOWN);
   310     EFFECT_TEST(GUID_SawtoothDown, SDL_HAPTIC_SAWTOOTHDOWN);
   311     EFFECT_TEST(GUID_RampForce, SDL_HAPTIC_RAMP);
   311     EFFECT_TEST(GUID_RampForce, SDL_HAPTIC_RAMP);
   312 
   312 
   934 
   934 
   935         break;
   935         break;
   936 
   936 
   937     case SDL_HAPTIC_SINE:
   937     case SDL_HAPTIC_SINE:
   938     /* !!! FIXME: put this back when we have more bits in 2.1 */
   938     /* !!! FIXME: put this back when we have more bits in 2.1 */
   939     /*case SDL_HAPTIC_SQUARE:*/
   939     /*case SDL_HAPTIC_SQUARE: */
   940     case SDL_HAPTIC_TRIANGLE:
   940     case SDL_HAPTIC_TRIANGLE:
   941     case SDL_HAPTIC_SAWTOOTHUP:
   941     case SDL_HAPTIC_SAWTOOTHUP:
   942     case SDL_HAPTIC_SAWTOOTHDOWN:
   942     case SDL_HAPTIC_SAWTOOTHDOWN:
   943         hap_periodic = &src->periodic;
   943         hap_periodic = &src->periodic;
   944         periodic = SDL_malloc(sizeof(DIPERIODIC));
   944         periodic = SDL_malloc(sizeof(DIPERIODIC));
  1164     case SDL_HAPTIC_RAMP:
  1164     case SDL_HAPTIC_RAMP:
  1165         return &GUID_RampForce;
  1165         return &GUID_RampForce;
  1166 
  1166 
  1167     /* !!! FIXME: put this back when we have more bits in 2.1 */
  1167     /* !!! FIXME: put this back when we have more bits in 2.1 */
  1168     /*case SDL_HAPTIC_SQUARE:
  1168     /*case SDL_HAPTIC_SQUARE:
  1169         return &GUID_Square;*/
  1169         return &GUID_Square; */
  1170 
  1170 
  1171     case SDL_HAPTIC_SINE:
  1171     case SDL_HAPTIC_SINE:
  1172         return &GUID_Sine;
  1172         return &GUID_Sine;
  1173 
  1173 
  1174     case SDL_HAPTIC_TRIANGLE:
  1174     case SDL_HAPTIC_TRIANGLE: