Event driven python / 3d mouse

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

Moderator: Moderators

Post Reply
0beron
Posts: 2
Joined: Wed Oct 29, 2008 4:20 pm

Event driven python / 3d mouse

Post by 0beron »

I've got my Space Navigator PE up and running inside python using the win32com module, but only in polling mode, ie I have to grab the sensor values continually. My application only redraws when the viewpoint moves (using wxPython to bind events to mouse movement).

Can I ask COM to call a callback or something similar whenever the SpaceNavigator is moved? An example would be great, but failing that a pointer to some docs for handling COM events in python would also be useful...

Cheers
Tarik
Posts: 7
Joined: Sat Oct 24, 2009 8:12 pm

Post by Tarik »

Hi,

Take a look at this: http://cgkit.sourceforge.net/doc2/space ... paceDevice

Hope this will help.

Tarik
Post Reply