Question

I have a small problem concerning my DLL I have created. I have had one or two people test my DLL, although my results aren't as expected since I cannot test all the features myself.

DLL Code: http://pastebin.com/H9uNbPU1

I'd first like to note that the double conversions are all intentional. I've posted this problem in a few places, to no avail and all these places I was asked about the double values.

The code itself isn't long, although I have little experience in C++ so I'm not sure where I went wrong.

Current known problems in the DLL: dwZpos and dwVpos return 0(according to my code). I thought these were the button on a joystick)e.g. L3 on a Playstation 3 Controller). Although they just return 0 if that button is pressed.

dwUpos works, I think this is the x-axis of the right joystick on a controller if the controller has dual joysticks. Correct? However dwVpos(I am thinking is the y-axis) returns -1 no matter what. Is it possibly that my R, U and V are all wrong? Should it be: R(Y-Axis), U(X-Axis) and V(Z-axis)?

I'd really like to get this up and running as soon as possible. That so far is all my questions. Thank you for reading!

Was it helpful?

Solution

It is not a solution to your problem but I recommend to switch do DirectInput.

From MSDN:

The multimedia joystick API has been superseded by DirectInput, which has more capabilities for today's input and force-feedback devices. For more information, see the DirectX documentation.

Personally I had problems too including 15 years ago when joystick's variety was not as big as nowadays.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top