• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Click event

Messages
1,468
Country
italy
I have currently
Code:
<Click Event="YAW_DAMPER_TOGGLE"/>
But I want to change it to <Click Kind="RightSingle+RightRelease">
Can I still use "YAW_DAMPER_TOGGLE" or do I have to use a K: Event instead?
 
Good question... did you try <Click Event="YAW_DAMPER_TOGGLE" Kind="RightSingle+RightRelease"/> ? Does that work? The RightRelease is interesting. The idea is to toggle it on and then off?
Interesting. Hope it works.
 
Last edited:
Good question... did you try <Click Event="YAW_DAMPER_TOGGLE" Kind="RightSingle+RightRelease"/> ? Does that work? The RightRelease is interesting. The idea is to toggle it on and then off?
Interesting. Hope it works.

That's an idea. I'll try it out. The VC10 has three yaw dampers each with visual indicators. Alongside are buttons that perform a test function and also to turn on/off the yaw damper. This is in addition to the switches on the autopilot. The buttons on the yaw damper indicator are covered by a flap.
So my intention is to open/close the flap with LeftDrag and press the buttons with RightSingle. In the case of (&gt;K:YAW_DAMPER_TOGGLE) +RightRelease just cancels out the RightSingle. So that works only with RightRelease.
Triple Yaw Damper.JPG



PS Your solution works without +RightRelease
Thanks
 
Last edited:
Would be better to use a custom LVar for the cover using left click.
Then make 3 custom buttons all using left click.
And since the code is a toggle your going to need an if statement.



Button 1 ...sample
Code:
(L:DAMPER1,Bool) 1 == (A:AUTOPILOT YAW DAMPER,Bool) 0 == and
if{ (>K:YAW_DAMPER_TOGGLE) }

(L:DAMPER1,Bool) 0 == (A:AUTOPILOT YAW DAMPER,Bool) 1== and
if{ (>K:YAW_DAMPER_TOGGLE) }
 
I ended up doing much the same
Code:
<Click Kind="LeftSingle">
(M:Event) 'LeftSingle' scmp 0 == if{ (L:FLAP,bool) ! (&gt;L:FLAP,bool) }</Click>
For the flap

Examples of the buttons
<Click Kind="RightSingle">(M:Event) 'RightSingle' scmp 0 == (G:Var1) 0 != if{ 0 (&gt;G:Var1) 0 (>L:stby select,bool) } els{ 1 (&gt;G:Var1) 1 (>L:stby select,bool) }</Click>


<Click Event="YAW_DAMPER_TOGGLE" Kind="RightSingle"/>
 
The big issue is the event is a toggle and will need to ask if it's off or on before deciding to click or with 3 buttons the toggle will be out of sink and you will never know if it turning off or turning on.

Some how you need to ask the variable (A:AUTOPILOT YAW DAMPER,Bool) if your off turn on or if your on turn off. My sample includes the switch position as well.
 
The big issue is the event is a toggle and will need to ask if it's off or on before deciding to click or with 3 buttons the toggle will be out of sink and you will never know if it turning off or turning on.

Some how you need to ask the variable (A:AUTOPILOT YAW DAMPER,Bool) if your off turn on or if your on turn off. My sample includes the switch position as well.

Well, in my version as it were, I can ostensibly get away without doing that because of the VC10's AP. There are two switches that are either clearly on or off. And neither will the AP function unless they are on. Also I have allowed for the yaw dampers to be turned on/off either by the buttons on the unit or by the switches on the AP. Point taken however.
apyaw.jpg
 
By default the AP will not prevent the yaw damper from working as it's independent.
So as long as you have another code preventing it from working when AP is off then that's ok. But with 2 switches or 3 that all control the yaw damper i think your going to need the variable as well.
 
Hello Vololiberista. In #5, you, in part, wrote:

<Click Kind="LeftSingle">
(M:Event) 'LeftSingle' scmp 0 == if{ etc......

How does this differ from: just <Click> ?
 
Back
Top