Reading data is half of it. The other half is making the aircraft do something, for a button box, a panel on a tablet or a script that sets up your radios.
Microsoft Flight Simulator 2024 gives you two ways in. Key events are the old, general ones, the same list you see in the controls menu. Input events belong to the aircraft you're sitting in. If you haven't connected yet, start with the SimConnect basics and use the same project file.
Key events first
Map your own ID to the event's name once, then send it whenever you like.
sim.MapClientEventToSimEvent(Ev.ParkingBrake, "PARKING_BRAKES");
sim.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, Ev.ParkingBrake, 0,
Group.Highest, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
enum Ev { ParkingBrake }
enum Group : uint { Highest = 1 }
PARKING_BRAKES toggles. HEADING_BUG_SET takes degrees, COM_STBY_RADIO_SET_HZ takes a frequency in hertz, and THROTTLE_SET takes 0 to 16383.
