On Jan 7, 2011, at 1:13 PM, syd adams wrote:

> Yes, the two lines of code I added just write the mouse xy movement to
> properties.With nasal I have to calculate the movement,which is done
> in the mouse code already.I've set up the Aerostar so I can click and
> slide the throttle,mixture and propeller levers in pairs, or
> Shift-drag to move each lever individually,by dragging the mouse up
> and down.
> 

This is an excellent addition!


> 
> On Friday, January 7, 2011, Heiko Schulz <aeitsch...@yahoo.de> wrote:
>> 
>> Hi,
>> 
>> Can you explain it a bit more detailed?
>> Is this the same as the manual which you move with the mouse in the 
>> B1900d-cockpit?
>> 
>> Cheers
>> Heiko
>> 
>>> 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
>> 
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to