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

EVENTS Wiki

Tom,

As Rob will likely recall, a number of years ago, I started working on a gauge to capture and optionally block both events and keystrokes. I was working with keyboard hooks for the keystrokes and the results were less than satisfactory, as the gauge had to carefully monitor whether FS was in focus. I ended up breaking from FS before I ever got it finished.
I recently blew the dust off the code and started working with SimConnect to achieve the same goals. It does work quite well, as the functions are there to either block, or simply detect, both events and keystrokes. In any case, the gauge, as envisioned, draws its instructions from a configuration file. Are you contemplating something that would by dynamically configurable with xml code?

Also, I believe that the ON KEY xml routine will generate a KEY_GAUGE_KEYSTROKE event. I think the ascii code for the key is passed as the parameter. Useful for C gauges and modules, not sure if it will help xml programming though.

Doug
 
Are you contemplating something that would by dynamically configurable with xml code?

Yes, of course. That's the idea of programming C++ to XML classes.

Also, I believe that the ON KEY xml routine will generate a KEY_GAUGE_KEYSTROKE event. I think the ascii code for the key is passed as the parameter. Useful for C gauges and modules, not sure if it will help xml programming though.

Good news indeed. If it's possible to code a class for this and put it into XMLTools, I'll try to do that in future versions of the module

Tom
 
Tom,
As Rob will likely recall, a number of years ago, I started working on a gauge to capture and optionally block both events and keystrokes.
Doug
Hi Doug,
Yes, I vagely remember .... : )
I'm still using quite a few of your great gauges almost every day; 95% of what I create in XML wouldn't be possible without them.
The XMLsound and XML2IPC being the most prominent ones.

Anyway, if you (or Tom) come up with something that solves the issues mentioned in the earlier posts, I'll be very gratefull. Saves me a lot of "workarounds" .

Cheers, Rob
 
I took a shot at a wiki entry on XML Key Traps, which is now uploaded to the panel and gauges section of the wiki.

For those with any energy on this topic, feedback and corrections are solicited. Or, feel free to directly edit the wiki.

One gap is that it doesn't mention any points related to VC.

Bob
 
Back
Top