pub type XPLMCommandCallback_f = Option<unsafe extern "C" fn(inCommand: XPLMCommandRef, inPhase: XPLMCommandPhase, inRefcon: *mut c_void) -> c_int>;Expand description
XPLMCommandCallback_f
A command callback is a function in your plugin that is called when a command is pressed. Your callback receives the command reference for the particular command, the phase of the command that is executing, and a reference pointer that you specify when registering the callback.
Your command handler should return 1 to let processing of the command continue to other plugins and X-Plane, or 0 to halt processing, potentially bypassing X-Plane code.
Aliased Type§
pub enum XPLMCommandCallback_f {
None,
Some(unsafe extern "C" fn(*mut c_void, i32, *mut c_void) -> i32),
}