Jump to content
The simFlight Network Forums

FSUIPC7 PRESETS MD82 MSFS2020


AleItalia

Recommended Posts

You're getting there, but you're just a little off base. 🙂

I assume you found the entry in the MaddogX_interior.xml file for the autobrake switch, since that's what you're referencing.  Starting at line 18244, that section looks like this:

    <PartInfo>
        <Name>ped_autobrake_switch1</Name>
        <AnimLength>10</AnimLength>
        <Animation>
            <Parameter>
                <Code>10 0 (L:ped_autobrake_switch1, bool) ?</Code>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <MouseFlags>LeftSingle+RightSingle+WheelUp+WheelDown</MouseFlags>
            <CallbackCode>
            (M:Event) 'LeftSingle' scmi 0 == if{ 536870912 26 + (&gt;L:pedestal_event,number) }
            (M:Event) 'RightSingle' scmi 0 == if{ 536870912 26 + (&gt;L:pedestal_event,number) }
            (M:Event) 'WheelUp' scmi 0 == if{ 16384 26 + (&gt;L:pedestal_event,number) }
            (M:Event) 'WheelDown' scmi 0 == if{ 8192 26 + (&gt;L:pedestal_event,number) }
            </CallbackCode>
        </MouseRect>
    </PartInfo>

The part you're trying to actuate is ped_autobrake_switch1, and you do that by sending a parameter to the pedestal_event (the section between the CallbackCode delimiters is what's important here).

So it is the pedestal_event that needs to be in your macro file.  This will make it appear in the drop down.  Take a look at the third post in this thread, where I showed you what my macro file looks like.  Yours should be:

1=L:pedestal_event=Set

NOT

1=L:ped_autobrake_switch1=Set

Once it appears in the dropdown, specify the parameter to be sent.  For a LeftSingle mouse click, send 536870938 (536870912+26).  So the assignment window should look like this:

image.png.4ca87b4388f4d1ae9dc0f737dd0af731.png

  • Like 1
Link to comment
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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.