Raw data access

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

Moderator: Moderators

Post Reply
jberta
Posts: 1
Joined: Thu Apr 12, 2007 4:44 am

Raw data access

Post by jberta »

Hi,

I am trying to access the SpaceNavigator in a command line application.
As advised in other posts, I went the 'HID' / raw data way.

I am using the system API: GetRawInputData + WM_INPUT message.

Ok, so now I get a set of bytes that change when the device status changes. How do I interpret those ?

Or am I making it too hard and is there a simpler way to get the device axis and button state ?

Thanks


Julien Berta.
jwick
Moderator
Moderator
Posts: 3340
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Hello jberta,

I'll have a look at this and get back to you shortly.

Jim
3Dx Software Development
jwick
Moderator
Moderator
Posts: 3340
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Hi Julien,

If you want to try another method, I've posted a HID example in this post

I will still look at WM_INPUT.

Jim
3Dx Software Development
jwick
Moderator
Moderator
Posts: 3340
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

I've created an example of how to use WM_INPUT (RawInput). It is on the same ftp site. It takes about the same amount of code, but does handle disconnection and reconnection of new devices quite transparently.

All the same caveats about bypassing the 3DxWare driver...

Jim
3Dx Software Development
Post Reply