sparkle-engine

Class MouseManager

鼠标输入

Implements

Constructors

Properties

canvas: HTMLCanvasElement
isMouseDown: boolean = false

鼠标是否点击

mousePosition: Vector2 = ...

鼠标的全局位置

Methods

  • Parameters

    • event: MouseEvent

    Returns void

  • Parameters

    • event: MouseEvent

    Returns void

  • Parameters

    • event: MouseEvent

    Returns void