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

Re: [pygame] [PATCH] JOYHATMOTION events with wrong 'value' attrib



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.