pub trait PointerInteraction: InteractionElementOffset + ModifiersInteraction {
    // Required methods
    fn trigger_button(&self) -> Option<MouseButton>;
    fn held_buttons(&self) -> EnumSet<MouseButton>;
}
Available on crate feature html only.
Expand description

A interaction that contains data about the pointer button(s) that triggered the event.

Required Methods§

source

fn trigger_button(&self) -> Option<MouseButton>

Gets the button that triggered the event.

source

fn held_buttons(&self) -> EnumSet<MouseButton>

Gets the buttons that are currently held down.

Implementors§