• 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.

Can we reset the zoom level?

Messages
120
Country
unitedstates
I looked in the sim connect API and didn't see anything about a zoom call...does this mean we have no way to reset the default zoom level?

Thanks...
 
Messages
120
Country
unitedstates
Hmmm...I hate to use that...users may have deleted that hot key (as I do)...I'd much prefer to use an API command.
 

ollyau

Resource contributor
Messages
1,026
Country
us-california
The ZOOM_1X key event will set your zoom level to 1.0. Is that what you're looking for?
 
Messages
120
Country
unitedstates
Am I able to read the current VC camera InitialZoom value via the API? I can't find it in the docs.

Thanks...
 
Messages
120
Country
unitedstates
>The ZOOM_1X key event will set your zoom level to 1.0. Is that what you're looking for?

@ollyau I think I mis-read your response...yes I think that is the answer to my question. I found that event in the API docs but was disappointed that was the only zoom event.

I guess I will have to fall back on 'pressing' the zoom in and out keys via code.

Update: I've learned that I can send any int value and get incremental zoom level changes. For example, the SDK documents ZOOM_1X == 64 to get a 1.0 zoom level. Send with 32 and get .5 zoom level.

So, I think I know how this will work now.
 
Last edited:
Messages
120
Country
unitedstates
I'm wondering if someone could help me with actually implementing this 1.0 zoom level change?

I'm doing this in C# and here is my code...I'm just trying to do a button click to set the zoom level but my code isn't working. I'm not sure where the problem is.

Thanks for any help.

enum EVENTS : uint
{
ZOOM_1X,
};


simconnect.MapClientEventToSimEvent(EVENTS.ZOOM_1X, "ZOOM_1X");



simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.ZOOM_1X, (uint)0, INPUT_GROUPS.INPUT0, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
 
Top