Type Definition 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

Warning!

  • called from GUI thread

Returns:

  • true if event handled, false if event ignored

Arguments

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