Hi there,
I've just been playing with the joystick support in the pyglet repository.
I had to make a few minor tweaks on OSX (10.6 using framework python
2.6.6 32bit) so that it used the cocoa (darwin_hid) instead of trying to
use carbon.
But then I ran into the slightly weird issue that all the axes are
initiliased as having value=None and this doesn't change for each axis
until the first detected movement on that axis. I guess this is because
of the event-driven design. Is it possible to trigger a series of fake
events during device.open() so that it fetches the true current values
on the axes? The axes of the joystick in question (Logic3 ProFlight2)
are absolute axes so I imagine they should have retrievable values at
all times.
cheers
Jon
--
Jonathan Peirce
Nottingham Visual Neuroscience
http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use, copy
or disclose the information contained in this message or in any attachment.
Any views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.