/// - A touchpad and a mouse both arrive as a synthesized pointer. Telling them apart is what lets
/// an app know a pinch gesture is possible at all, and whether "scroll" means a wheel detent or a
/// - A trackball and a trackpoint have their own acceleration and scroll semantics, which is why
#[allow(clippy::struct_excessive_bools)] // four independent propagation flags — W3C's own model
(LeftMouseDown, EventType::MouseDown) => check_mouse_button(&event.data, MouseButton::Left),
(MiddleMouseUp, EventType::MouseUp) => check_mouse_button(&event.data, MouseButton::Middle),
(LeftMouseDown, EventType::MouseDown) => check_mouse_button(&event.data, MouseButton::Left),
(MiddleMouseUp, EventType::MouseUp) => check_mouse_button(&event.data, MouseButton::Middle),
(LeftMouseDown, EventType::MouseDown) => check_mouse_button(&event.data, MouseButton::Left),
(MiddleMouseUp, EventType::MouseUp) => check_mouse_button(&event.data, MouseButton::Middle),
#[allow(clippy::needless_pass_by_value)] // owned azul value taken by value (public API / ownership-transfer convention)
/// 2. **Hash Match:** Nodes without keys are matched by content hash (enables reorder detection)
// NOTE: The old dispatch_synthetic_events / CallbackTarget / CallbackToInvoke / EventDispatchResult
pub fn deduplicate_synthetic_events(mut events: Vec<SyntheticEvent>) -> Vec<SyntheticEvent> {
pub fn event_type_to_filters(event_type: EventType, event_data: &EventData) -> Vec<EventFilter> {
// documented caller contract (C guarantees a valid ptr/len). Marking it `unsafe fn` would force
pub fn default_input_interpreter(info: &InputInterpreterInfo<'_>) -> PreCallbackFilterResult {