How can I read the data of the 3D mouse though the USB port?

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

Moderator: Moderators

Post Reply
marqueras
Posts: 3
Joined: Wed May 07, 2008 7:28 am

How can I read the data of the 3D mouse though the USB port?

Post by marqueras »

Hello all,
I
ngomes
Moderator
Moderator
Posts: 3344
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Post by ngomes »

Hi marqueras,

There's some information on that in the "Developer's Forum". Check the "HID" and "Raw Input" stickies.

I've also moved this topic in (t)here.
Nuno Gomes
marqueras
Posts: 3
Joined: Wed May 07, 2008 7:28 am

Post by marqueras »

Hi ngomes,

I have seen the information that you told me, but the link doesn
ngomes
Moderator
Moderator
Posts: 3344
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Post by ngomes »

Hi marqueras,[quote]but the link doesn
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

values jiggering

Post by dr.ridu »

hi,

as i mentioned in another thread i've tried the DInputPoll-Example and got it working. But the values are jiggering (like doubling for one frame) from time to time. That makes it impossible to use the Navigator. Anybody heard of this problem ? I Tried the search "values jigger" but (as i supposed) found nothing....

Sorry for using this thread but i found it fitting somehow....

thx
jwick
Moderator
Moderator
Posts: 3341
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Make sure you don't poll faster than the device can send new data. I'd stay under 60Hz, or even 30Hz to make sure you stay away from a Nyquist issue.
ngomes
Moderator
Moderator
Posts: 3344
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: values jiggering

Post by ngomes »

Hi dr.ridu,
But the values are jiggering (like doubling for one frame) from time to time. That makes it impossible to use the Navigator. Anybody heard of this problem ?
Are you sampling (polling) the data really fast in your test program? Try to reduce the sampling rate (say: add a "sleep" of 65 ms) and let us know what happens.
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

Post by dr.ridu »

I'm tickling the poll during the renderloop. So its maximum 60Hz. Is that really too fast ? I can't use gettickcount for clamping the framerate because I'm already using it elsewhere....
jwick
Moderator
Moderator
Posts: 3341
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Every other frame, just reuse the data from the last time.
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

Post by dr.ridu »

yeaah,

that's what I'm doing now and its much better. But the jiggering is just less and not away.... It should be ok for testcases. Not really for a serious application. I understand that not using the driver gets me to such things.
But using DX and needing 4-5 days just for getting this... hmmmm...
Post Reply