Interface Input

interface Input {
    getMousePosition(): Vector2;
    isMouseControlDown(control: number): boolean;
    isMouseControlPressed(control: number): boolean;
    isMouseControlReleased(control: number): boolean;
}

Methods

  • Parameters

    • control: number

      0 - MouseLeftButton, 1 - MouseRightButton, 2 - MouseScrollWheelUp, 3 - MouseScrollWheelDown

    Returns boolean

  • Parameters

    • control: number

      0 - MouseLeftButton, 1 - MouseRightButton, 2 - MouseScrollWheelUp, 3 - MouseScrollWheelDown

    Returns boolean

  • Parameters

    • control: number

      0 - MouseLeftButton, 1 - MouseRightButton, 2 - MouseScrollWheelUp, 3 - MouseScrollWheelDown

    Returns boolean