This is a sample gauge that implements some of the features available to gauges through the PDK
These inlude:
Fuel handling
Sound
Pause status
Message handling
The #includes for the header files are reflective of the way I have them stored on my system so you will need to modify these entries accordingly.
This sample certainly doesn't include all of the things you can do with the PDK, but hopefully it will illustrate how other tasks might be approached.
Error #1: Obtaining the User object using the message handler only works when the sim is first loaded. If the user object has been switched to, from another aircraft, you will have to capture the user object in the gauge callback function.
These inlude:
Fuel handling
Sound
Pause status
Message handling
The #includes for the header files are reflective of the way I have them stored on my system so you will need to modify these entries accordingly.
This sample certainly doesn't include all of the things you can do with the PDK, but hopefully it will illustrate how other tasks might be approached.
Error #1: Obtaining the User object using the message handler only works when the sim is first loaded. If the user object has been switched to, from another aircraft, you will have to capture the user object in the gauge callback function.