[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] WiiMote for PyGame
- To: pygame-users@xxxxxxxx
- Subject: [pygame] WiiMote for PyGame
- From: "Francois Bradet" <onolog@xxxxxxxxx>
- Date: Wed, 27 Dec 2006 04:58:10 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 27 Dec 2006 04:59:12 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=FZyIlI6fy3ywmK9ZJf7wZbOsS8YVIdnO2GpN+0v5zsFfwqaTzS09gc+cpYtOkUFL4MUI3ieFDrUZXiiAlSZC1bOqYONU0CErqA/QEbXWPj9KMYhgmXT3GWG9TWw5uExpkueoCWE9Nqys4+339fKpYZqXNs0gOo8ykwHw6/jXUqU=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
I'm using the Nintendo Wii Remote with PyGame, and it's working well.
I had never used PyGame until a few days ago, though, so I'm quite a PyGame newbie.
I haven't done any game programming other than
http://www.infolibre.ca/jstet/ in the past, either.
Anyway, I was wondering if somebody could take a look at my code in
https://svn.forthewiin.org/wmd/trunk/wmd/UI/
Specifically these two files:
https://svn.forthewiin.org/wmd/trunk/wmd/UI/PyGIRDisplay.py
https://svn.forthewiin.org/wmd/trunk/wmd/UI/PyGCommon.py
PyGIRDisplay simply displays two dots, like:
http://forthewiin.org/wmd0.2-irdisplay.jpg
At ~100FPS, which is the WiiMote report rate.
Do you have any suggestions as to how I could use PyGame better,
or how I could provide a more useful interface for delivering WiiMote events?
I want to make it easy to import wmd into any PyGame program, and
have full WiiMote control.
Well, I appreciate any feedback.
Thanks.