I've got SimConnect up and running, and can pull in data (Altitude, Indicated Altitude, etc.) and I can send events back to the simulator to unpause the simulation - so I know the connection is up and working and my basic method of sending events seems to be correct, but for the life of me I can't adjust the altimeter settings. The SEND_UNPAUSE works fine, but the INC_ALTIMETER has no effect. I've tried it with both Transmits and with each one separately with the same results. Thanks in advance for any help.
Here is the code I'm using (C#):
... (Declarations)
enum EVENTS
{
INC_ALTIMETER,
SEND_UNPAUSE
};
enum GROUPID
{
FLAG = 2000000000,
};
... (When setting up connection)
simconnect.MapClientEventToSimEvent(EVENTS.INC_ALTIMETER, "KOHLSMAN_INC");
simconnect.MapClientEventToSimEvent(EVENTS.SEND_UNPAUSE, "PAUSE_OFF");
... (In Button Click Event)
simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.SEND_UNPAUSE, (uint)0, GROUPID.FLAG, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.INC_ALTIMETER, (uint)0, GROUPID.FLAG, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
...