vJoy icon indicating copy to clipboard operation
vJoy copied to clipboard

All FFB effects seems to be "DirectionEnabled" (polar)

Open MichalBerner opened this issue 2 years ago • 3 comments

vJoy v 2.2.1.1

All effect reports (FFB_EFF_REPORT) seems to have

  • AxisEnabledDirection flag set to 4 (Direction enable)
  • value of Polar field set to true (which seems to be based on value of AxisEnabaledDirection)

This happens even if there is effect created for only one axis and you might expect AxisEnabledDirection to be equal 1 for X axis and 2 for Y axis.

I tried to create one axis effects with Force Editor but I was not able to create any "non polar" effect using both Force Editor and ForceTest.

MichalBerner avatar Feb 08 '22 11:02 MichalBerner

Hi, I'm helping with my custom fork for retrogaming (Windows XP, 7, 10). I can help a little.

How can I test your use case? I have FEdit.exe and can create all the effects, but it is always polar. Where is some checkbox to use cartesian or spherical coords in FEdit?

Some screenshot would help.

BTW: I fixed SlimDX Ramp effect, the pull request been already merged in SlimDX.

cyberluke avatar Sep 12 '22 22:09 cyberluke

Hi @cyberluke Sorry for late response. I'm not really sure where the problem is - if it's on a vJoy side or if it's something in a FEdit.exe... However... steps that I'm taking to create (what I would expect to be) a non polar effect are:

  1. Run FEdit.exe

  2. Add Spring Effect

  3. Open Effect Properties

  4. Go to Axes tab

  5. Choose Second Axis to (None) image

  6. There is a sort of a bug in Force Editor: if you would press Play now - the effect would be created like a second axis is still selected). So the trick is to click outside of the Force Editor (to loose focus), go back to the application and press Play.

  7. If we have an application with FFB callback registered we would be able to notice that effect is created with EnabledAxis set to Direction (not X or Y what one would expect for single axis effect).

If the First Axis is set to the X Axis than effect would have a Direction value set to 8191 image

If the First Axis is set to the Y Axis than effect would have a Direction value set to 0 image

DirX value follows the Direction value DirY and Enabled Axis values remains unchanged in both cases

(* the right part of the screenshot comes from my app but logging the effect report would show the same)

MichalBerner avatar Dec 20 '22 22:12 MichalBerner

Hi, fedit.exe seems actually to always pick a polar direction, whatever the selection is made, and define an angle to indicate vector Y (0° = 0 out of 32767) or X (90° = 8191 out of 32767). So i am not sure it is a bug within vJoy. Do you have another tool to generate DirectInput effects with an axis disabled ?

njz3 avatar Aug 25 '23 21:08 njz3