I am developing an aircraft model and I want to use XML gauges/3D animation as views (as they are supposed to be in MVC pattern), and implement systems logic (model part of MVC pattern) in C++ code in PDK DLLs.
The problem I am trying to solve is how to respond to various events that occur in views (XML gauges/3D animations). There is an old method of using (>L:Var) variables, but this method is not the one I want, for several reasons:
- * It requires constant polling, which is rather inefficient
* Some events may be lost if they use a single (>L:Var) and occur between two polls
Is there a way to define C++ callback or process some event in C++ code for any custom event in XML gauge/3D animation? Just for example, I want to process sound playback requests. They may be issued by XML gauge update code or in response for mouse clicks. I don't want to lose any of them so I need to get my callback called (or some event received) on every request. Is that possible at all (Panels SDK, PDK, SimConnect...)?