qc.Mouse.isAnyMouse

Prototype

  • boolean isAnyMouse(void);

Description

Check whether any mouse is pressed.

Example

    if (game.input.mouse.isAnyMouse()) {
        console.log('Mouse pressed.');
    }