-
Using DirectInput
Hi,
I am looking for an easy tutorial on how to read input out of a Joystick or Gamepad with DirectX's DirectInput.
I have found a code example in MSDN but it has got a huge MFC overhead that I don't want to know about.
Anybody knows a good site where I could start ?
Thank you very much.
-
Using DirectInput
Nobody's got any links or ideas where I could start ?
Thank you
-
Re: Using DirectInput
Have you looked at the samples which are installed with the DirectX SDK?
They don't use MFC now, do they?
-
Re: Using DirectInput
In the DirectX SDK documentation, they have a tutorial on using the joystick, and no MFC is in there.
-
Re: Using DirectInput
I don't know if its MFC but there is a GUI in there so I don't see clearly the DirectInput code.
-
Re: Using DirectInput
The sample isn't MFC. Its just calling a dialog box to test out the joystick.
Look through the code and pay attention more specifically to the DirectX functions they define: InitDirectInput, EnumJoysticksCallback, UpdateInputState, etc...
It is commented fairly well to explain what they are doing.