MultipleClickSensor.hold

Call this function every time the desired click event is emitted.

This overload accepts raw values for settings. You should use Fluid's I/O systems where possible, so the other overload is preferable over this one.

  1. void hold(TimeIO timeIO, PreferenceIO preferenceIO, HoverPointer pointer)
  2. void hold(TimeIO timeIO, PreferenceIO preferenceIO, Vector2 pointerPosition)
  3. void hold(MonoTime currentTime, Duration doubleClickInterval, float maximumDistance, Vector2 pointerPosition)
    struct MultipleClickSensor

Parameters

currentTime MonoTime

Current time in the system.

doubleClickInterval Duration

Maximum time allowed between two clicks.

maximumDistance float

Maximum distance the pointer can travel before.

pointerPosition Vector2

Position of the pointer emitting the event.

Meta