Key Events Index
Key Events are used as a way to interface between different systems, with the user at the top level and the various sub-system within the simulation at the bottom. Generally they will be used as part of the Gauge/Panel API, and also when using RPN to generate Model Behavior inputs, although they may also have other uses. Due to the different ways that gauges and other intruments and controls can be created, every key event has two different aliases:
- Event ID: This is the string that should be used to reference the event when working with RPN.
- Key Name: This is the name that should be used when working with WebAssembly or the SimConnect SDK.
As such, all the key event tables list both of these alias for every key event, although the index below only lists the RPN version. In general, the RPN Event ID is simply the Key Name minus the KEY_ prefix, but this is not always the case and there can be other differences, which is why they are both listed in the tables.
K:” vars, similar to way you call SimVars, using the GetSimVarValue(name, unit, dataSource = "") function.Due to the massive number of available event IDs, they have been split into smaller related sub-sections to facilitate finding the ones that you need based on the their approximate relevance.
The available sections are:
- Aircraft Autopilot/Flight Assist Events
- Aircraft Electrical Events
- Aircraft Engine Events
- Aircraft Flight Control Events
- Aircraft Fuel System Events
- Aircraft General Systems Events
- Aircraft Instrumentation Events
- Aircraft Misc. Events
- Aircraft Radio Navigation Events
- Helicopter Specific Events
- Balloon And Airship Specific Events
- Miscellaneous Events
- View And Camera Events
Key Event Index
Below you can find indexed all the Key Event IDs available, presented this way to facilitate finding the required variable at a glance or through the search system:
0 - 9
A
ANTIDETONATION_TANK_VALVE_TOGGLE
AP_MANAGED_SPEED_IN_MACH_TOGGLE
AXIS_THRUST_VECTOR_HORIZONTAL_SET
B
C
CABIN_LIGHTS_POWER_SETTING_SET
CABIN_NO_SMOKING_ALERT_SWITCH_TOGGLE
CABIN_SEATBELTS_ALERT_SWITCH_TOGGLE
COM1_STORED_FREQUENCY_INDEX_SET
COM2_STORED_FREQUENCY_INDEX_SET
D
E
ELECTRICAL_ALTERNATOR_BREAKER_TOGGLE
ELECTRICAL_BATTERY_BREAKER_TOGGLE
ELECTRICAL_BUS_TO_ALTERNATOR_CONNECTION_TOGGLE
ELECTRICAL_BUS_TO_BATTERY_CONNECTION_TOGGLE
ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE
ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE
ELECTRICAL_BUS_TO_EXTERNAL_POWER_CONNECTION_TOGGLE
ELECTRICAL_CIRCUIT_BREAKER_TOGGLE
ELECTRICAL_CIRCUIT_POWER_SETTING_SET
ELECTRICAL_EXTERNAL_POWER_BREAKER_TOGGLE
ELECTRICAL_LINE_BREAKER_TOGGLE
ELECTRICAL_LINE_CONNECTION_SET
ELECTRICAL_LINE_CONNECTION_TOGGLE
F
FREEZE_LATITUDE_LONGITUDE_TOGGLE
FUEL_TANK_SELECTOR_CROSSFEED_L2R
FUEL_TANK_SELECTOR_CROSSFEED_R2L
FUEL_TANK_SELECTOR_EXTERNAL_ALL
G
H
HELICOPTER_ENGINE_1_BEEP_TRIM_DECREASE
HELICOPTER_ENGINE_1_BEEP_TRIM_INCREASE
HELICOPTER_ENGINE_1_BEEP_TRIM_SET
HELICOPTER_ENGINE_1_GOVERNOR_SWITCH_OFF
HELICOPTER_ENGINE_1_GOVERNOR_SWITCH_ON
HELICOPTER_ENGINE_1_GOVERNOR_SWITCH_SET
HELICOPTER_ENGINE_1_GOVERNOR_SWITCH_TOGGLE
HELICOPTER_ENGINE_2_BEEP_TRIM_DECREASE
HELICOPTER_ENGINE_2_BEEP_TRIM_INCREASE
HELICOPTER_ENGINE_2_BEEP_TRIM_SET
HELICOPTER_ENGINE_2_GOVERNOR_SWITCH_OFF
HELICOPTER_ENGINE_2_GOVERNOR_SWITCH_ON
HELICOPTER_ENGINE_2_GOVERNOR_SWITCH_SET
HELICOPTER_ENGINE_2_GOVERNOR_SWITCH_TOGGLE
HELICOPTER_FORCE_TRIM_RELEASE_BUTTON_SET
HELICOPTER_THROTTLE_RELATIVE_AXIS
I
J
K
L
LIQUID_DROPPING_SYSTEM_DOOR_CLOSE
LIQUID_DROPPING_SYSTEM_DOOR_COMMAND_GROUP_CLOSE
LIQUID_DROPPING_SYSTEM_DOOR_COMMAND_GROUP_OPEN
LIQUID_DROPPING_SYSTEM_DOOR_COMMAND_GROUP_SET
LIQUID_DROPPING_SYSTEM_DOOR_COMMAND_GROUP_TOGGLE
LIQUID_DROPPING_SYSTEM_DOOR_OPEN
LIQUID_DROPPING_SYSTEM_DOOR_SET
LIQUID_DROPPING_SYSTEM_DOOR_TOGGLE
LIQUID_DROPPING_SYSTEM_SCOOP_CLOSE
LIQUID_DROPPING_SYSTEM_SCOOP_OPEN
LIQUID_DROPPING_SYSTEM_SCOOP_SET
LIQUID_DROPPING_SYSTEM_SCOOP_TOGGLE
LOW_HEIGHT_WARNING_GAUGE_WILL_SET
M
N
O
P
PANEL_LIGHTS_POWER_SETTING_SET
PEDESTRAL_LIGHTS_POWER_SETTING_SET
PNEUMATICS_AREA_TEMPERATURE_DEC
PNEUMATICS_AREA_TEMPERATURE_INC
PNEUMATICS_AREA_TEMPERATURE_SET
PNEUMATICS_PACK_FLOW_MODE_HIGH
PNEUMATICS_PACK_FLOW_MODE_NORM
PNEUMATICS_TARGET_CABIN_ALTITUDE_DEC
PNEUMATICS_TARGET_CABIN_ALTITUDE_INC
PNEUMATICS_TARGET_CABIN_ALTITUDE_SET
POINT_OF_INTEREST_CYCLE_PREVIOUS
POINT_OF_INTEREST_TOGGLE_POINTER
PRESSURIZATION_PRESSURE_ALT_DEC
PRESSURIZATION_PRESSURE_ALT_INC
PRESSURIZATION_PRESSURE_DUMP_SWITCH
PROPELLER_REVERSE_THRUST_TOGGLE
PROP_PITCH1_DECREASE_SMALL_EX1
PROP_PITCH1_INCREASE_SMALL_EX1
PROP_PITCH2_DECREASE_SMALL_EX1
PROP_PITCH2_INCREASE_SMALL_EX1
PROP_PITCH3_DECREASE_SMALL_EX1
PROP_PITCH3_INCREASE_SMALL_EX1
PROP_PITCH4_DECREASE_SMALL_EX1
Q
R
S
SET_THROTTLE1_REVERSE_THRUST_OFF
SET_THROTTLE1_REVERSE_THRUST_ON
SET_THROTTLE2_REVERSE_THRUST_OFF
SET_THROTTLE2_REVERSE_THRUST_ON
SET_THROTTLE3_REVERSE_THRUST_OFF
SET_THROTTLE3_REVERSE_THRUST_ON
SET_THROTTLE4_REVERSE_THRUST_OFF
T
THROTTLE_REVERSE_THRUST_TOGGLE
THRUST_VECTOR_HORIZONTAL_DECREASE
THRUST_VECTOR_HORIZONTAL_INCREASE
THRUST_VECTOR_VERTICAL_DECREASE
THRUST_VECTOR_VERTICAL_INCREASE
TOGGLE_MASTER_BATTERY_ALTERNATOR
TOGGLE_THROTTLE1_REVERSE_THRUST
TOGGLE_THROTTLE2_REVERSE_THRUST
TOGGLE_THROTTLE3_REVERSE_THRUST
U
V
W
X
Y
Z
Event IDs As Key Events
Key events permit you to change the state of a component or other aspect of the simulation based on some form of input, which is received from some event. When checking for a key event, you would use the following RPN format:
[0] (>K:[EVENT_ID])
[1] [0] (>K:2:[EVENT_ID])There are two formats showing for accessing key events because many of them require not just one but two parameters, and so the formatting above shows how this is achieved. Below are two “real world” examples, one with a single parameter and the other with 2 parameters:
1 (>K:TOGGLE_EXTERNAL_POWER)
50 1 (>K:2:PANEL_LIGHTS_POWER_SETTING_SET)Using Indexed Parameter Names
Many components in the various systems for an aircraft are indexed and also named. In previous version of the simulation, the index was what you would use in in a key event to refer to the component, however with the introduction of modular SimObjects, indices are no longer reliable as they can change as part of the merge process. To make sure you are referencing the correct component now, you you can (and should) use the name of the component, rather than its index (and components should all be unique).
Using the name instead of an index follows this format:
'COMPONENT_NAME'_nSo, for example, using the PANEL_LIGHTS_POWER_SETTING_SET example given above, we would have something like the following:
50 'MyCircuit'_n (>K:2:PANEL_LIGHTS_POWER_SETTING_SET)