Touch.getPosition

Get the current position of a touch in window coordinates.

This function returns the current touch position in relative (window) coordinates.

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

Return Value

Type: Vector2i

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

Meta