[Resending, the first answer seemed to get lost somewhere]

Malte Skarupke schrieb:
> > I'm trying to get the 3D Space Navigator
> > (http://www.3dconnexion.com/) to work in Python. I quickly found a
> > solution using comtypes on the 3DConnexion developer forum: 
> > http://www.3dconnexion.com/forum/viewtopic.php?t=984&start=30
> > 
> > However that solution only works with comtypes version 0.2.1. Any
> > newer version will result in the events not registering.
> > 
> > 
> > I believe, that this is enough output, because I believe the line
> > "DEBUG:comtypes:Release <POINTER(ISensor) ptr=0x9f2170 at c14d50>"
> > shows, where the bug originates. If you need any further testing, I
> > would be glad to help.

Does it work when you keep a reference to the sensor object?  Something like 
this:

>>> >>> import logging logging.basicConfig(level=logging.DEBUG) from
>>> >>> comtypes.client import * x = CreateObject("TDxInput.Device") 
>>> >>> x.Connect()
0
>>> >>> s = x.sensor test = ShowEvents(s)
>>> >>> 

-- Thanks, Thomas 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to