Hi,
I've tried to use my 3D mouse in an openscenegraph project. I've put the SBInit function (the one from the 3DXTest32 example) but it always returns 0 (meaning my device hasn't been initalised correctly). I don't understand why because when I compile the 3DXTest32 demo, it works perfectly (and I've got the exact same code for SBinit()). Do we have to use a window (HWND parameter)? What can I do to incorporate my 3D Mouse in my project?
Thanks in advance for your answers.
openscenegraph and 3d mouse
Moderator: Moderators
Re: openscenegraph and 3d mouse
You need to provide a valid HWND. The driver uses that window to send the events back to your application. The events arrive in your dispatch loop on that window.