[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.Joystick Broken in 1.8.1?



hi,

thanks for the report.

I think ubuntu/linux might have changed their joystick support
somehow.  I read as much not long ago, but haven't looked into it yet.


What are the errors?  Are they segfaults, or are exceptions raised?
Or something else?



cheers.





On Sun, Feb 15, 2009 at 5:30 AM, pymike <pymike93@xxxxxxxxx> wrote:
> Hi all,
>
> Me and my friend are having trouble with joysticks in pygame 1.8.1. We're
> both running Ubuntu 8.10 (on different machines in different countries)
>
> Basically, joysticks are initializing fine. joystick.get_button() also is
> working. However, when printing joystick.get_numhats() and
> joystick.get_numaxes(), we're getting a zero. Obviously, executing
> joystick.get_hat(0) and joystick.get_axis(0) gives us errors. We've also
> tried running some pygames that use joysticks, and they crash due to
> hat/ball errors.
>
> However, I've tried some other SDL games that use joysticks, and they all
> work perfectly. Help?
>
> Thanks,
>
> --
> - pymike
> "Python eggs me on."
>