Hi all,
I was hoping someone could help me out with a P3D simconnect problem I'm having.
I'm a fairly experienced C programmer but a bit of a noob when it comes to simconnect.
As a proof of concept I've been looking at how to model the brakes system in an airliner, I think I've found the right idea/approach but my implementation is lacking.
When the user presses the brakes button my code successfully intercepts the event before P3D 'sees' it and I perform some validation, if the brakes aren't available I just move on but if the brakes are available I'd like to pass this "Brakes" event on to the sim but I can't get it to work.
I'm using
HRESULT check = SimConnect_TransmitClientEvent(hSc, SIMCONNECT_OBJECT_ID_USER, KEY_BRAKES, 0, SIMCONNECT_GROUP_PRIORITY_DEFAULT, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
check comes back as S_OK but the brakes don't even twitch...
2 questions..
1) Am I going about this the right way or is there a better approach?
2) How do I send the masked event on to P3D so it then reacts to it?
Cheers,
Ian
I was hoping someone could help me out with a P3D simconnect problem I'm having.
I'm a fairly experienced C programmer but a bit of a noob when it comes to simconnect.
As a proof of concept I've been looking at how to model the brakes system in an airliner, I think I've found the right idea/approach but my implementation is lacking.
When the user presses the brakes button my code successfully intercepts the event before P3D 'sees' it and I perform some validation, if the brakes aren't available I just move on but if the brakes are available I'd like to pass this "Brakes" event on to the sim but I can't get it to work.
I'm using
HRESULT check = SimConnect_TransmitClientEvent(hSc, SIMCONNECT_OBJECT_ID_USER, KEY_BRAKES, 0, SIMCONNECT_GROUP_PRIORITY_DEFAULT, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
check comes back as S_OK but the brakes don't even twitch...
2 questions..
1) Am I going about this the right way or is there a better approach?
2) How do I send the masked event on to P3D so it then reacts to it?
Cheers,
Ian