[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] No data from joystick
- To: pygame-users@xxxxxxxx
- Subject: [pygame] No data from joystick
- From: "Neil Fraser" <root@xxxxxxxxxxxxxxxx>
- Date: Mon, 21 Apr 2008 09:39:31 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 21 Apr 2008 12:39:41 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=g/fe6fvvRODaJfQ7hkBMZbgbn8qcJj3g8HG7wFwSasQ=; b=Py6QE/av84EAQN0BgQn9uE/IE3HxI6eN3eJ4FNy5JGpd9tQ2d5Iuolu3Z7jcuwmjqnRJA+UBJ77cXBznOV5JBb4ozaxm5wBIzThzrH/dbLJUQTLv0S/AtLGS5w85sNgmdI0esHDgoAMkNpYcg2LBgcUsW71ONKOebThPZg29684=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=D7H+vVjvdrkCff6ze3xnyWOFgOkefq52t5pzyi6O5uKG5gcacvJ46EEssA0JCbXdxs9v+5RwKu4tAuQ941qJo1aSVZludA/7jHf/6SPwEO1wgtR6bgzOe2WlBfly3rogfuLT4xAS8t0e3La7eU+gCJRydfHgOvBo3OzkDhek55k=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
pygame.joystick correctly detects my joystick, reads its name, number
of axies, buttons and hats. But all data relating to the position of
these controls is 0.
joystick.init()
print joystick.get_name()
-> "Logitech Extreme 3D Pro USB"
print joystick.get_numaxes()
-> 4
print joystick.get_axis(0)
-> 0.0
print joystick.get_numbuttons()
-> 4
print joystick.get_button(0)
-> 0
print joystick.get_numhats()
-> 1
print joystick.get_hat(0)
-> (0, 0)
The Windows XP game controller window correctly shows control data.
Any ideas why pygame doesn't see any data?
--
Neil Fraser, Programmer & Wizard
http://neil.fraser.name