Data without GetEvent function

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

Moderator: Moderators

Post Reply
superpans
Posts: 2
Joined: Wed Apr 01, 2015 9:14 am

Data without GetEvent function

Post by superpans » Tue Apr 07, 2015 2:43 am

Hi everyone,
I'm using 3D mouse SpaceNavigator in my application. I have a thread that every 20 ms take information from periphery ( joystick and spacenavigator). I need to take axis data from space navigator using normal functions. I already downloaded 3dxWare SDK and looked the example. It always uses SiGetEvent() function. But this function wait to an event of the mouse to occur. Do you know if there is a function that take information directly from the spacenavigator? I mean a function like "GetAxis", "GetData" or something like that?
Thank you in advance for your help.
Bye.

ngomes
Moderator
Moderator
Posts: 1944
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Data without GetEvent function

Post by ngomes » Mon Apr 27, 2015 9:51 am

Hi superpans,

Sorry for the (very) late reply.

Have you considered receiving all incoming events on an additional worker thread (using SiGetEvent) and then caching the data? Elsewhere in your program you could then poll for the cached data.

I believe you cannot retrieve the device latest state using the driver API (3DxWare SDK).

Post Reply