There seems to be a lot of the SDK events that are not working from these lists.
For example, CHASE_VIEW_NEXT does not work, nor does EYEPOINT_RESET.
VIEW_AXIS_INDICATOR_CYCLE for example doesn’t work either.
I’m using exactly the same code to trigger other events without issue.
eg.
hr:=SimConnect_TransmitClientEvent(hSimConnect, SIMCONNECT_OBJECT_ID_USER, ord(eventID), 0, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
(Yes, it’s Delphi code but it works perfectly with over 190 other events, so it’s not the code)
1 Like
Those events are not working. They have been ported over from FSX in the documentation but were never fixed in code. This has been reported many times in the last 4 years.
2 Likes
…I finally have the camera controls working. The variables MUST be set directly, rather than using an event. (since events don’t work. What a pain.)
CAMERA STATE, for example, works when writing to that variable. (CAMERA STATE must be added to the data definition of course to gain read/write access to it)
Delphi code:
Set data definition in simconnect:
hr:=SimConnect_AddToDataDefinition(hSimConnect, Ord(DEFINE_SEND_CAMERA_STATE), ‘CAMERA STATE’, ‘Number’);
Send the data with a neat procedure:
procedure Tfs.simConnectSetVariable(definedVariable: TSimConnectDataDefineId; value: double);
var
hr: HRESULT;
begin
hr:=SimConnect_SetDataOnSimObject(hSimConnect,
Ord(definedVariable),
SIMCONNECT_OBJECT_ID_USER, 0, 0,
SizeOf(value), @value);
end;
Actually call the above procedure:
simConnectSetVariable(DEFINE_SEND_CAMERA_STATE,3); //external chase