We're getting "Invalid Hat Number" and some odd indexing errors in one game.
I'll post the exact errors here in a bit. Basically, it's just not reading
the hats or axes. I've tried both gamepads and joysticks, and get the same
errors.

Cheers,

On Sun, Feb 15, 2009 at 11:33 PM, René Dudfield <[email protected]> wrote:

> 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 <[email protected]> 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 <[email protected]> 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."
> >>
> >
>



-- 
- pymike
"Python eggs me on."

Reply via email to