Type Alias flipperzero_sys::ViewInputCallback

source ·
pub type ViewInputCallback = Option<unsafe extern "C" fn(event: *mut InputEvent, context: *mut c_void) -> bool>;
Expand description

View Input callback

§Arguments

  • event - pointer to input event data
  • context - pointer to context

§Returns

true if event handled, false if event ignored called from GUI thread

Aliased Type§

enum ViewInputCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut InputEvent, _: *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut InputEvent, _: *mut c_void) -> bool)

Some value of type T.