Brilliant, a huge leap over click-click-click. Thank you Syd! -Gary aka Buckaroo
On Fri, Jan 7, 2011 at 12:45 PM, syd adams <adams....@gmail.com> wrote: > Hi guys. > Is there any interest in mouse acceleration properties, besides myself ? > I,ve added it locally , and have mouse drag pedestal controls in the > Aerostar . > > The calculation is already done in the code, FGMouseInput.cxx , so > I've simply written each to a property: > > At line 317: > if (x != m.x) { > int delta = x - m.x; > > fgSetInt("/devices/status/mice/mouse/accel-x", delta); > for (unsigned int i = 0; i < mode.x_bindings[modifiers].size(); i++) > mode.x_bindings[modifiers][i]->fire(double(delta), double(xsize)); > } > if (y != m.y) { > int delta = y - m.y; >> fgSetInt("/devices/status/mice/mouse/accel-y", -1 * delta); > for (unsigned int i = 0; i < mode.y_bindings[modifiers].size(); i++) > mode.y_bindings[modifiers][i]->fire(double(delta), double(ysize)); > } > > I figured there was no point doing a patch for 2 lines of code , and > if no one else sees a use for it , it's easy to do with nasal... > Cheers > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel