The end
event fires when activation of a command ends. This is the proper way to run code in response to discrete input event.
The event uses the CommandEvent
object, with the phase set to "end"
.
> ident = "sim/transponder/transponder_ident"
Command
> "begin",
undefined
>
undefined
>
Received command event with phase end
undefined
xplm_FlightLoop_Phase_AfterFlightModel
callback that triggers this event.replace_command()
and wrap_command()
functions are the equivalents to this event.