SDL Haptic Gamepad Support in Windows?

8 / 7 / Vista / XP / Phone / VisualStudio

Moderators: ezraanderson, lordmortis

SDL Haptic Gamepad Support in Windows?

Postby naturally » Fri Jan 15, 2016 11:57 am

Been having a problem getting SDL MOAI host to recognize the Steam Controller.

It comes back with an error message: "SDL not built with haptic (force feedback) support"

There is no problem on Linux. I tried a bunch of ways to make sure Haptic is added, but no luck if(SDL_InitSubSystem(SDL_INIT_HAPTIC)==-1) fails.
Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
naturally
 
Posts: 710
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada

Re: SDL Haptic Gamepad Support in Windows?

Postby naturally » Fri Jan 15, 2016 12:34 pm

Looks like it might be dependent on "HAVE_DINPUT_H" which is dependent on "if(DIRECTX)" which is OFF.

How do you enable DIRECTX?
Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
naturally
 
Posts: 710
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada

Re: SDL Haptic Gamepad Support in Windows?

Postby naturally » Fri Jan 15, 2016 4:47 pm

Ok, so far (on Windows 8.1), download and install the Windows SDK, then in "bin\create-projects-win.bat" add these lines appropriately:

Code: Select all
  1. SET DXSDK_DIR=C:\Program Files\Windows Kits\8.1

  2. DDIRECTX=TRUE



Still compiling...

bad news, this version of DirectX 11 doesn't have "dxerr.lib". So, now to retry with an older version, DirectX 9...
Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
naturally
 
Posts: 710
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada

Re: SDL Haptic Gamepad Support in Windows?

Postby naturally » Fri Jan 15, 2016 7:16 pm

Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
naturally
 
Posts: 710
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada

Re: SDL Haptic Gamepad Support in Windows?

Postby naturally » Sat Jan 16, 2016 3:37 pm

Solved by upgrading to SDL 2.0.4:

upgrading-to-sdl-2-0-4-t3241/
Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
naturally
 
Posts: 710
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada


Return to Windows

Who is online

Users browsing this forum: No registered users and 0 guests

x