pub struct PressPlugin {
pub long_press: Duration,
pub double_click: Duration,
}Expand description
Plugin: registers press-recognizer systems.
Fields§
§long_press: DurationThreshold above which a continuous press fires LongPressEvent.
double_click: DurationMaximum gap between two clicks on the same entity to count as a
DoubleClickEvent.
Trait Implementations§
Source§impl Default for PressPlugin
impl Default for PressPlugin
Auto Trait Implementations§
impl Freeze for PressPlugin
impl RefUnwindSafe for PressPlugin
impl Send for PressPlugin
impl Sync for PressPlugin
impl Unpin for PressPlugin
impl UnsafeUnpin for PressPlugin
impl UnwindSafe for PressPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.