Skip to main content

msfs.execute_input_event()

msfs.execute_input_event(input_event, value)

This function issues an Input Event into the Microsoft Flight Simulator.

Note that the preset executed by this function is the _Set preset within the Input Event definition specified by input_event. Due to limitations of the SimConnect specifications, it is not possible to execute any presets other than _Set. Additionally, note that the input_event specified should be the Input Event ID without the preset name.

Parameters

ParameterTypeDescription
input_eventstringInput Event ID
valuenumber or stringValue to set for Input Event

Return Values

This function doesn't return any value.

See Also