openscenegraph and 3d mouse

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
Posts: 4
Joined: Tue Mar 04, 2014 2:28 am

openscenegraph and 3d mouse

Post by Yaoming » Tue Mar 04, 2014 2:38 am

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.

Posts: 2803
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA

Re: openscenegraph and 3d mouse

Post by jwick » Tue Mar 04, 2014 6:44 am

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.

Post Reply