pub type XPLMAvionicsMouseWheel_f = Option<unsafe extern "C" fn(x: c_int, y: c_int, wheel: c_int, clicks: c_int, inRefcon: *mut c_void) -> c_int>;Expand description
XPLMAvionicsMouseWheel_f
Mouse wheel callback for scroll actions into your screen or (2D-popup) bezel, useful if your bezel has knobs that can be turned using the mouse wheel, or if you want to simulate pinch-to-zoom on a touchscreen. Return 1 to consume the event, or 0 to let X-Plane process it (for stock avionics devices). The number of “clicks” indicates how far the wheel was turned since the last callback. The wheel is 0 for the vertical axis or 1 for the horizontal axis (for OS/mouse combinations that support this).
Aliased Type§
pub enum XPLMAvionicsMouseWheel_f {
None,
Some(unsafe extern "C" fn(i32, i32, i32, i32, *mut c_void) -> i32),
}