pointAndClick

Create a virtual Hover I/O pointer and use it to click a given position. This is a helper wrapping point.

"Clicking" is equivalent to sending a FluidInputAction.press event.

  1. Publisher!HoverPointerAction pointAndClick(HoverIO hoverIO, Vector2 position, bool isActive, int clickCount)
  2. Publisher!HoverPointerAction pointAndClick(HoverIO hoverIO, float x, float y, bool isActive, int clickCount)
    @safe
    pointAndClick
    (,
    float x
    ,
    float y
    ,
    bool isActive = true
    ,
    int clickCount = 1
    )

Return Value

Type: Publisher!HoverPointerAction

A Publisher that produces HoverPointerAction.

See Also

point Params; hoverIO = Hover I/O system to target. position = Position to click. x = X position to click. y = Y position to click. isActive = If true (default), sends an active event. clickCount = If set to 2, imitate a double click, if 3, a triple click and so on.

Meta