Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

key event on release

Featured Replies

Just curious to know if AA&O can allow one momentary on switch to control two events, such as in a landing gear that uses only one momentary switch. In MSFS, a key press can be configured for two events: one when key is pressed; the other when key is released.  Thank you.

  • Commercial Member
Quote

In MSFS, a key press can be configured for two events: one when key is pressed; the other when key is released

On the AAO button assignment there is a Key Down and a Key Up section. Same thing.

But - are you sure that this is what you mean? Sounds more like you are talking about toggles. Which means that one momentary button is toggling between two or more states of an aircraft system/switch/whatever. That is used a lot in all StreamDeck profiles and it is usually done with scripts (=one momentary button can toggle through more then just two states using the seq and iseq RPN operators).

Edited by Lorby_SI

LORBY-SI

  • Author

No, not a toggle switch, which has two on states. A momentary on switch(on/off) has only one on state. In the case of a landing gear with such a switch, for example, the lever presses the switch when it's in one position. When the pilot moves the lever, the switch is released, and it's in an off state.

I've been using AA&O for many switches. I don't think that the key up and the key down works in the same way as the one in msfs,since AA&O seems to activate both states at the same time.

  • Commercial Member
26 minutes ago, flyforever said:

No, not a toggle switch, which has two on states. A momentary on switch(on/off) has only one on state. In the case of a landing gear with such a switch, for example, the lever presses the switch when it's in one position. When the pilot moves the lever, the switch is released, and it's in an off state.

I've been using AA&O for many switches. I don't think that the key up and the key down works in the same way as the one in msfs,since AA&O seems to activate both states at the same time.

 

Sorry, but we don't seem to be on the same page here. I honestly don't get what you are talking about, you would have to explain that a bit more.

I wasn't talking about hardware. What I mean by "toggle" is the effect that a/any hardware input has in the simulator. Like one momentary button press (=the keys on the StreamDeck or on a keyboard) dropping the gear, and when you press it again, it retracts the gear. In this specific case there is a simulator event that does this, it toggles the gear between its two states. But this can be done for every aircraft system using scripts. You can toggle through all 5 states of the EFIS zoom with one single momentary button. Using a script, every momentary button input moves the EFIS knob to the next position, and then it reverses direction (or jumps back to zero).

26 minutes ago, flyforever said:

I don't think that the key up and the key down works in the same way as the one in msfs,

I have no idea what the MSFS controller assignment does, nor do I care. AAO has it's own logic. The app is compatible with 10 different simulators at the moment, and it is not trying to do things the same way as either of them.

26 minutes ago, flyforever said:

AA&O seems to activate both states at the same time.

No it doesn't. When you press a joystick button, Key Down is triggered. When you release the joystick button, Key Up is triggered. I'm not sure that I see an alternative way that this could work differently - ?

 

 

Edited by Lorby_SI

LORBY-SI

  • Commercial Member
12 minutes ago, flyforever said:

Your last paragraph does answer my initial question.  Thank you.

Just for the sake of completeness, here is an example of a toggle script, operating the TCAS knob in the FlyByWire A332NX:

0·1·2·1·(L:A32NX_SWITCH_TCAS_Position,·Number)·(L:TCASPosSw)·4·iseq·(>L:A32NX_SWITCH_TCAS_Position,·Number)·(>L:TCASPosSw)

You would assign this script to a single momentary hardware button. Every time you press the physical button, the knob in the cockpit will turn one step to the right, and when it reaches the end, it reverses direction and turns left. Etc., etc..

This general principle can be used for all multi-state knobs/switches/levers as long as there is a variable that allows you to read the current state (so the script can determine the next one in sequence). It is widely used for all hardware that only has momentary buttons (like the StreamDeck)

Edited by Lorby_SI

LORBY-SI

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.