comparison src/haptic/win32/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 f578389c9ead
children 4eee4d565368
comparison
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 )