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
Parameter | Type | Description |
---|---|---|
input_event | string | Input Event ID |
value | number or string | Value to set for Input Event |
Return Values
This function doesn't return any value.