Jump to content
Sign in to follow this  
TASCHMANN

Mouse action assignable to button or axis

Recommended Posts

I have always found AAO to be essential to my enjoyment of MSFS.  I can't imagine flying without it. 

My question:  I have an addon [Blackbird FG-1d Corsair] in which several essential commands, e.g. Tail Hook, are not mappable to keyboard or any button or axis.  According to the developer, they are only operable by using the mouse.

Is it possible using AAO to convert mouse movements and clicks to events that are mappable to a joystick? 

Share this post


Link to post
Share on other sites
15 minutes ago, TASCHMANN said:

Is it possible using AAO to convert mouse movements and clicks to events that are mappable to a joystick? 

Yes, but mouse coordinates are absolute locations. This would only work together with fixed camera views where the virtual mouse event lands exactly where it belongs. You cannot use this while you are looking elsewhere (and they you can just as well use the mouse directly IMHO)

 

15 minutes ago, TASCHMANN said:

only operable by using the mouse.

I would need to see the actual code to believe that... There are rare occasions where that is indeed the case though. 

Is that the ex-MilViz model?

Edited by Lorby_SI

LORBY-SI

Share this post


Link to post
Share on other sites
1 hour ago, Lorby_SI said:

would need to see the actual code to believe that... There are rare occasions where that is indeed the case though. 

Is that the ex-MilViz model?

Yes it is the former Milviz model.  I couldn't believe it myself until it was verified by the developer on the MSFS site. https://forums.flightsimulator.com/t/release-milviz-corsair-for-msfs/374413/1790  See question by SlideRule4848 and responses.

Perhaps I am misunderstanding something?

Edited by TASCHMANN

Share this post


Link to post
Share on other sites
35 minutes ago, TASCHMANN said:

Perhaps I am misunderstanding something?

I don't think that he means to say that you can only operate it with the mouse. The other guys are finding ways to trigger things too. So I am guessing that the developer uses LVars, BVars or HVars (or entire scripts). This is something that must be figured out in MSFS developer mode. Open "Tools->Behaviors" in MSFS devel mode, then hover the mouse over the button/lever in the cockpit, then press Ctrl&G. You should then see the code that is bound to it and normally one can find clues in there (= the names of the LVars/BVars etc, that they use or the script that is running when you operate the control). This can then be replicated in AAO.


LORBY-SI

Share this post


Link to post
Share on other sites

Looks like they are using LVars, one in particular:
(>L:EVENTS_ID,·Enum)

Example: RPN Scripts for the tail hook
Down 
0x1111E·(>L:EVENTS_ID,·Enum)

Up
0x1111F·(>L:EVENTS_ID,·Enum)

The tail hook seems to have three positions, UP, PARK and DOWN. So one needs two clicks to fully extend it. Tail Hook Status can be read from (L:FG1D189, Enum) and that yields values of 0-1-2 according to the hook levers position.

Instead of "Enum" you can also use "Number" (may be the better choice, Number is the kind of the default for an LVar.) Make sure to replicate the code exactly as shown above - one(!) space character between the number and the first parentheses, and another one(!) space character between the comma and the unit.

Edited by Lorby_SI

LORBY-SI

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...