Re: [TuxKart-devel] Re: [Tuxkart-cvs] tuxkart/src WidgetSet.cxx,1.8,1.9
Status: Alpha
Brought to you by:
sjbaker
From: <jam...@bt...> - 2004-08-22 23:47:26
|
--- "r. mutt" <anj...@ya...> wrote: > > checking for x/y == 0 is necessary for digital > sticks/pads to work properly > (because they jump from 0 to +/-maximum) > otherwise you get a single movement out of them > before > they go dead. > and yes, > if x/y is 0 then it will be between -JOY_MID and > +JOY_MID, but when x/y isn't 0 we still need the old > test for better analog support > (stick doesn't have to go all the way back to > center). > > in my testing w/ the if(!y || -JOY_MID <= y && y <= > +JOY_MID) > i had no side-effects w/ analog support > and the digital worked fine > if you have a fix for digital pad support you like > better, i'm certainly ok w/ it. > > -paul I see what you are trying to do now, and if you say it works then that's good and I'm happy to leave it. It's just that with no commit message it wasn't very obvious what you were trying to do given that originally "!x" was taken to mean "no movement in the x axis", and you've now changed it to mean "x axis at 0". James |