Hey guys! I am working on a project with a few other people and I am unable to open any haptic devices on my machine (Windows 8.1 64-bit) but others (Mostly Windows 7 64-bit) are able to.
The error I am getting is as follows:
Haptic: There are 0 haptic devices available
The code I am doing to open this is directly from the wiki:
Code:
SDL_Haptic *haptic;
// Open the device
haptic = SDL_HapticOpen(0);
if (haptic == NULL)
{
printf("%s\n", SDL_GetError());
return;
}
// Initialize simple rumble
if (SDL_HapticRumbleInit( haptic ) != 0)
return;
// Play effect at 50% strength for 2 seconds
if (SDL_HapticRumblePlay( haptic, 0.5, 2000 ) != 0)
return;
SDL_Delay( 2000 );
// Clean up
SDL_HapticClose( haptic );
I tried with both wired and wireless Xbox 360 controllers and the issue persists. Any ideas?[/quote]------------------------
Jake Shirley, RTIS