Search found 7 matches

by kitsu
Mon Oct 01, 2007 3:46 pm
Forum: Windows Discussion Forum
Topic: This doesn't bide well for the future.....
Replies: 106
Views: 229313

I think I'm on both sides of this fence at the same time. I think the problem for the 3dConnexion guys is that the device is providing extra data that doesn't map well to any existing programs. I can't off the top of my head think of any program that allows you to simultaneously move in all three ax...
by kitsu
Sat Aug 11, 2007 12:38 pm
Forum: Developer's Forum for Windows
Topic: Where's the SDK?
Replies: 37
Views: 90764

I just noticed something interesting this morning - pressing the 2d button toggles sensor.Rotation between outputing all zeros or meaningful values. It seems this behavior is at 'hardware' level (or at least not exposed via COM). In future releases it might be nice to have a settable 2d attribute in...
by kitsu
Fri Aug 10, 2007 4:37 pm
Forum: Developer's Forum for Windows
Topic: Where's the SDK?
Replies: 37
Views: 90764

Oops, nevermind. I had a beer and everything fell together*. The following code prints out nice floating point value as I move the cap. import comtypes.client as client from ctypes import * import logging console = logging.StreamHandler() console.setLevel(logging.DEBUG) formatter = logging.Formatter...
by kitsu
Fri Aug 10, 2007 3:40 pm
Forum: Developer's Forum for Windows
Topic: Where's the SDK?
Replies: 37
Views: 90764

Thanks for the quick reply. I guess using a lower level module wouldn't be terrible. Is there a .dll supporting c calling syntax available? The Python ctypes module allows Python programs to dynamically load shared libraries (whether they are .dll or Linux .so or whatever) and call arbitrary functio...
by kitsu
Fri Aug 10, 2007 11:01 am
Forum: Developer's Forum for Windows
Topic: Where's the SDK?
Replies: 37
Views: 90764

Hi calli, - What is a "message pump" - how can I implement on in Python? - why can`t we have a function just reading out the values? A "message pump" is what is generally called the Windows feature of transmitting "messages" between the system and applications. Are you...
by kitsu
Fri Aug 10, 2007 8:41 am
Forum: Developer's Forum for Windows
Topic: Where's the SDK?
Replies: 37
Views: 90764

One reason you need to deal with the added complexity is if you want to be notified immediately when something happens. Even if the interface worked correctly and you could grab values any time you wanted there is a risk that you will miss the users actions because you are only peeking at the values...
by kitsu
Thu Aug 09, 2007 6:23 pm
Forum: Developer's Forum for Windows
Topic: Where's the SDK?
Replies: 37
Views: 90764

To pump the Windows message queue in Python in a loop call either win32gui.PumpWaitingMessages() if your using the pyWin32 package, or the following function if you are using ctypes.comtypes; from ctypes import * class POINT(Structure): _fields_ = [("x", c_long), ("y", c_long)] c...