Hi,
I have some problem with the joystick axis. Actually the symptoms are the following:
Moving the first joystick along the X axis has no effect.
When I move my Y axis, the value is set to the X axis.
Actually, changing the following line:
std::map<int, int>::iterator it = mAxisMapping.find( diBuff[i].dwOfs);
with this one:
std::map<int, int>::iterator it = mAxisMapping.find( diBuff[i].dwOfs + 4);
resolve my problem. However, I have no idea where the problem comes from.
Actually, in the DIEnumDeviceObjectsCallback() method, the first X Axis already comes with an offset of 4 (lpddoi->dwOfs), so I guess the problem is coming from here...
I am using the CVS HEAD (from yesterday) and the latest June 2006 DirectX SDK. I will try to upgrade to the new one. I am using Visual Studio 2005.
The consol application sample produces the same result...
I have no alignment instructions anywhere.
Does anybody have the same problem ?