L:var callback?

#1
Hi there,
My name's Farley, I'm just getting into gauge programming.

Quick question...

In a c++ gauge, one can use "register_key_event_handler()" to register a function to be called each time a Sim Event is triggered. Also, I believe one can use SimConnect to register a function to be called when a specified simulator A:var, E:var or such changes value? (though I've never done it). My question is, is it possible to register such a function to be called whenever a specified L:var changes state?

Am I correct in thinking my only option is to use "get_named_variable_value()" every gauge update to poll the variable waiting for a change?

Sincerely,
Farley
 
Top