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

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



hi again,

Just a note for help in debugging, that pygame joystick support didn't
change between pygame 1.8.0 and 1.8.1.  However there were a few small
changes between 1.7.1 and 1.8.0.



On Mon, Feb 16, 2009 at 4:31 PM, René Dudfield <renesd@xxxxxxxxx> wrote:
> 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."
>>
>