Console Application

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

Moderator: Moderators

Post Reply
pwmohr
Posts: 1
Joined: Mon Feb 12, 2007 6:42 pm

Console Application

Post by pwmohr »

I need to write a simple console application that reads the Space Navigator data without using any Windows. Is there a way I can register my own callback function or handler with the driver instead of specifying a window handle to receive the data?
ngomes
Moderator
Moderator
Posts: 3344
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Post by ngomes »

Hi pwmohr,

Yes, you can. You will have to access the USB stack directly and bypass our driver. Look for the posts from the user RBC9 here in this Forum.
All 3Dconnexion USB devices are HID compliant, an open hardware standard.

A final note, remember that bypassing the driver may have consequences to other applications. You should only process data from the device if your application is "in focus". If you are developing a pure console app (no windows at all), then that won't be an issue.

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

Post by jwick »

Hello pwmohr,

There is now a HID example referenced in this topic.

Jim
3Dx Software Development
Post Reply