Aller au contenu principal

Touch:up()

Performs a touch up action, releasing the touch at the current position.

Signature

up(): void
up(fingerId: number): void

Parameters

ParameterTypeDescription
fingerIdnumberThe ID of the finger to release (optional)

Returns

  • Type: void

Examples

Touch:init()

-- Simple touch up (releases all fingers)
Touch:up()

-- Touch up for specific finger
Touch:up(1)

-- Complete touch sequence
Touch:down(100, 200)
Touch:move(300, 400)
Touch:up()

-- Multi-finger touch sequence
Touch:down(0, 100, 200)
Touch:down(1, 300, 400)
Touch:move(0, 150, 250)
Touch:move(1, 350, 450)
Touch:up(0)
Touch:up(1)