qc.Touch.isTouchStart

Prototype

  • boolean isTouchStart(id:int)

Paramters

Paramter Type Description
id number see : qc.Touch

Description

Check whether a specified touch start

Example

    if (game.input.touch.isTouchStart(qc.Touch.MAIN)) {
        console.log('Main Touch.');
    }