qc.Touch.isAnyTouch

Prototype

  • boolean isAnyTouch(void)

Description

Check whether any touch is pressed

Example

    if (game.input.touch.isAnyTouch()) {
        console.log('Touch happened.');
    }