[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.event.get() data
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame.event.get() data
- From: Mike Dudley <frogspasm@xxxxxxxxxxxxxx>
- Date: Sun, 04 Mar 2007 01:44:10 -0800
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 04 Mar 2007 04:43:34 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=lFQ660u+Vb26iymGQF8r76AeI7wupOe2YeGSqmaQuMQ6JEM/9KAxjZaeTgpzdWzt; h=Received:Message-ID:Date:From:Reply-To:User-Agent:X-Accept-Language:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
How would one read the data that comes from pygame.event.get() ?
I want to read the data from a joystick directly from the event, without
having to use joystick.getaxis().
The event data looks like a dictionary, but I'm not sure how to access it.
<Event(7-JoyAxisMotion {'joy': 0, 'value': -0.0078432569353312793,
'axis': 0})>
Thanks,
Mike D.