Page 1 of 1

Input devices - Force feedback

Posted: Fri Sep 09, 2011 6:01 pm
by superLED
Hi there,

I am currently working on a 2 player game, which features joysticks. I am using SDL to get input,
and everything is working smoothly. But as far as I know, SDL does not support force feedback (rumble etc).
So my question is: Do I need an additional library to handle this, if so, which?
Please give detailed information, as I have little experience on the matter :)

I am on a Windows 7 computer, using C++.

Thanks!

Re: Input devices - Force feedback

Posted: Sun Sep 11, 2011 2:09 pm
by midix
As far as I know, Microsoft's DirectInput has support for almost any more or less standard input device, and I saw also force feedback in its API some years ago. Maybe DirectInput is an overkill for starters (as is most of DirectX with COM interfaces), but it is popular and I am sure, DirectInput has lots of tutorials.

Here you go:

http://www.microsoft.com/msj/0298/force.aspx
especially "Using DirectInputEffect" part of code.

Re: Input devices - Force feedback

Posted: Sun Sep 11, 2011 2:47 pm
by k1net1k
midix wrote: http://www.microsoft.com/msj/0298/force.aspx
especially "Using DirectInputEffect" part of code.
wow im glad in the 2000's they invented triple digit column width values for websites :)

Re: Input devices - Force feedback

Posted: Sun Sep 11, 2011 4:25 pm
by superLED
Thank you so much! I'll look into that and see if I can understand and implement it.

:D