[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [PATCH] JOYHATMOTION events with wrong 'value' attrib
On Sun, Aug 10, 2003 at 08:43:23AM -0700, Pete Shinners wrote:
> Latimerius wrote:
> >there seems to be a typo in the code that assembles JOYHATMOTION event
> >objects - the 'value' attribute is computed incorrectly. The following
> >trivial patch should correct it:
> >- if(event->jhat.value&SDL_HAT_LEFT) hx = 1;
> >+ if(event->jhat.value&SDL_HAT_RIGHT) hx = 1;
>
> BINGO! thanks. i had a bug report for solarwolf that the jostick hat
> input didn't work to the right. hadn't looked into it yet, but i
> figured it was something like this. just applied to cvs, thanks again.
I'm glad I could be somewhat useful to this wonderful project. :)
latimerius