Input devices - Force feedback

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
superLED
Chaos Rift Junior
Chaos Rift Junior
Posts: 303
Joined: Sun Nov 21, 2010 10:56 am
Current Project: Engine
Favorite Gaming Platforms: N64
Programming Language of Choice: C++, PHP
Location: Norway

Input devices - Force feedback

Post 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!
midix
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 16
Joined: Sat Sep 10, 2011 1:02 pm

Re: Input devices - Force feedback

Post 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.
User avatar
k1net1k
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 563
Joined: Sun Nov 07, 2010 2:58 pm
Contact:

Re: Input devices - Force feedback

Post 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 :)
User avatar
superLED
Chaos Rift Junior
Chaos Rift Junior
Posts: 303
Joined: Sun Nov 21, 2010 10:56 am
Current Project: Engine
Favorite Gaming Platforms: N64
Programming Language of Choice: C++, PHP
Location: Norway

Re: Input devices - Force feedback

Post by superLED »

Thank you so much! I'll look into that and see if I can understand and implement it.

:D
Post Reply