XPLMCustomizeAvionics_t
The XPLMCustomizeAvionics_t structure defines all of the parameters used to replace or enhance built-in simulator avionics devices using XPLMRegisterAvionicsCallbacksEx(). The structure will be expanded in future SDK APIs to include more features. Always set the structSize member to the size of your struct in bytes!
typedef struct {
// Used to inform XPLMRegisterAvionicsCallbacksEx() of the SDK version you compiled against; should always be set to sizeof(XPLMCustomizeAvionics_t)
int structSize;
// The built-in avionics device to which you want your drawing applied.
XPLMDeviceID deviceId;
// The draw callback to be called before X-Plane draws.
XPLMAvionicsCallback_f drawCallbackBefore;
// The draw callback to be called after X-Plane has drawn.
XPLMAvionicsCallback_f drawCallbackAfter;
// The mouse click callback that is called when the user clicks onto the device's bezel.
XPLMAvionicsMouse_f bezelClickCallback;
// The mouse click callback that is called when the user clicks onto the device's bezel.
XPLMAvionicsMouse_f bezelRightClickCallback;
// The callback that is called when the users uses the scroll wheel over the device's bezel.
XPLMAvionicsMouseWheel_f bezelScrollCallback;
// The callback that lets you determine what cursor should be shown when the mouse is over the device's bezel.
XPLMAvionicsCursor_f bezelCursorCallback;
// The mouse click callback that is called when the user clicks onto the device's screen.
XPLMAvionicsMouse_f screenTouchCallback;
// The right mouse click callback that is called when the user clicks onto the device's screen.
XPLMAvionicsMouse_f screenRightTouchCallback;
// The callback that is called when the users uses the scroll wheel over the device's screen.
XPLMAvionicsMouseWheel_f screenScrollCallback;
// The callback that lets you determine what cursor should be shown when the mouse is over the device's screen.
XPLMAvionicsCursor_f screenCursorCallback;
// The key callback that is called when the user types in the device's popup.
XPLMAvionicsKeyboard_f keyboardCallback;
// A reference which will be passed into each of your draw callbacks. Use this to pass information to yourself as needed.
void * refcon;
} XPLMCustomizeAvionics_t;