• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 Simconnect_TransmitClientEvent, which EventData to use?

Messages
71
Country
norway
I do have trouble with some Simconnect_TransmitClientEvents.

AS an example I use the below command to decrease the ADF values when rotating a knob on my hardware. The ADF value changes in the sim, but not as I want to.


SimConnect_TransmitClientEvent(hSimConnect, 0, EVENT_ADF_WHOLE_DEC, 0, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);

where the enum EVENT_ADF_WHOLE_DEC is mapped to key "ADF1_WHOLE_DEC"
that reads
Decrements ADF 1 by 1 KHz, with carry as digits wrap.

Lets us say the ADF value is 1430.8 in the sim. When I rotate the knob the sim value changes to 1330.8, 1230.8 ....It should have been like this: 1429.8, 1428.8 ......

It does not change the least significant digit before the decimal

The Event command is using 0 as the EventData. Is there another value I can use instead of the "0"
to get it correct.

This problem is also for other sim Events, like HDG(Heading_Bug), and CRS(VOR_OBI_)
 
Probably not the answer you're looking for, but I avoid the _INC and _DEC methods like the plague (Covid-19?). I prefer to have a simple onscreen rotation and define a _SET event depending on the onscreen position, where _SET updates the entire frequency (ADF or Nav or Comm).
 
Thanks for replying.
Yes, I can use your suggested method of doing it, but I am a lazy guy and do not want to change the code if not completely necessary.
Using INC and DEC Events does work, but it is wrong digits that respond. There must be some other setting that causes this behavior. I try to ask in the P3D SDK forum to see if anyone else can direct me to a solution
 
Last edited:
There is no setting. It is what it is. It has been this way since long before SimConnect existed. With regards to tuning any radios... those who care that it work correctly write their own code and use the SET events. That is how it is.
 
OK, COMs and NAVs seem to work OK with their INC and DEC Events. I will write the necessary code and use the SET Events for the others.

Does anyone know if there is any Event for an autopilot VS button? I can't find any, maybe it is hidden under another Event name?
 
The autopilot does not do a VS hold. You set a target altitude, and then altitude hold... and then a desired vertical speed. Also... the default INC/DEC can cause issues... as I already stated, custom code is typically used to avoid any issues.
 
I was not looking for a VS HOLD, but an Event to set the VS panel button to activate the VS speed display. I want to send an Event so the VS display in the default G1000 goes from "----" to active(showing the actual VS speed).

I am setting up my hardware to interface the default G1000 in FS2020. I also miss Events for Panel buttons, like VNAV, D>, MENU, FPL, PROG CLR, ENT. Also missing Events for the FMS and RANGE rotary knobs.

All the other button, knobs works OK in both FSX and FS2020
 
FS2020.... since no one has access to that SDK... you're not going to get any help. Those that do have access... can't tell you a thing.
 
Then read the documentation of the SDK and see if they've developed events for those buttons. It's where anyone else would have to go to find it.
 
The default G1000 events are there all, like the ones in FSX, but they do not work for the G1000 in the airplanes. At least I can't get them to work. I have also tried to use i.e. AS1000_PFD_FLIGHTPLAN_BUTTON as they use in the javascript for the Garmin 1000 gauge, but with no luck.
 
Any luck/update on the G1000 Event IDs? They don't work for me as well.
Also in the Alpha build there was an option to assign keys/buttons to G1000 functions but it seems that they removed it from the release version. Well, it also didn't work in the Alpha but it was there..

I really hoped that M$ tried to make developers life easier this time but it looks like that made it even worse (if it's even possible!).
 
Back
Top