Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Trouble with ForceFeedback  (Read 1465 times)

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
Trouble with ForceFeedback
« on: April 11, 2007, 10:24:50 PM »

I have a Logitech Gamepad with forcefeedback but it isn't recognised by the FF_Demo.  While debugging the code I find that the
Code: [Select]
BOOL CALLBACK Win32JoyStick::DIEnumEffectsCallback(LPCDIEFFECTINFO pdei, LPVOID pvRef)callback is never activated.  I know nothing about DirectInput, so I can't even pretend to know where this should be called or why it's being skipped, but I has hoping you could point me in the right direction.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Trouble with ForceFeedback
« Reply #1 on: April 12, 2007, 09:45:34 AM »

It sounds like your device simply does not register DirectInput force feedback support. Perhaps it uses a different non-free API? something like the immersion (http://www.wreckedgames.com/forum/viewtopic.php?t=123&highlight=immersion)?
Logged

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
Trouble with ForceFeedback
« Reply #2 on: April 12, 2007, 11:43:24 AM »

It's a Logitech Rumblepad 2 nothing fancy like the in the post you sent me to.  Hmm, I'll look into the gamepade and see if I can find what the api is.
Logged

KungFooMasta

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 47
    • View Profile
Trouble with ForceFeedback
« Reply #3 on: April 12, 2007, 02:21:12 PM »

CaseyB if you figure out how to use force feedback for that controller please share, I have that controller as well.  :)

KungFooMasta
Logged

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
Trouble with ForceFeedback
« Reply #4 on: April 12, 2007, 04:10:12 PM »

:oops: I guess it helps to install the drivers that come with the thing, huh. :oops:
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Trouble with ForceFeedback
« Reply #5 on: April 12, 2007, 06:32:02 PM »

Quote from: "CaseyB"
:oops: I guess it helps to install the drivers that come with the thing, huh. :oops:


Hmm, does that solve it for you then? Or, do you still have difficulty with FF?
Logged

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
Trouble with ForceFeedback
« Reply #6 on: April 12, 2007, 06:57:04 PM »

No, that's solved it, it's working now.  Now I am playing with different types of forces and their settings, but I can't really tell a difference between some them.  For example, OIS::Effect::ConstantForce, feels the same as OIS::Effect::RampForce, what's the difference?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Trouble with ForceFeedback
« Reply #7 on: April 12, 2007, 07:37:57 PM »

You can read the DirectX SDK docs for the most detailed explaination of the differences. One thing that was cool, was the DX SDK used to have a DirectInput force feedback editor where you could play with all the forces (I have it with the DX 2004 SDK).

But, mostly, you will use a constant force, and just lower/raise the force turn off/on the effect.
Logged