Touch.getPosition

Get the current position of a touch in desktop coordinates.

This function returns the current touch position in global (desktop) coordinates.

  1. Vector2i getPosition(uint finger)
    class Touch
    static
    getPosition
    (
    uint finger
    )
  2. Vector2i getPosition(uint finger, const(Window) relativeTo)

Return Value

Type: Vector2i

Current position of finger, or undefined if it's not down.

Meta