Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Mouse

Index

Constructors

constructor

  • new Mouse(button: 0 | 1 | 4 | 2 | 3, descriptor: string, game: Game, scene: Scene, mouseInput: MouseInput, mouseDown?: (e: MouseEvent) => any, mouseUp?: (e: MouseEvent) => any, mouseMove?: (e: MouseEvent) => any): Mouse
  • description

    Creates a Mouse instance

    since

    2.0.0

    Parameters

    • button: 0 | 1 | 4 | 2 | 3

      Mouse button

    • descriptor: string

      Mouse descriptor

    • game: Game

      Game instance

    • scene: Scene

      Scene instance

    • mouseInput: MouseInput

      MouseInput that the Mouse is attached to

    • Optional mouseDown: (e: MouseEvent) => any
        • (e: MouseEvent): any
        • Parameters

          • e: MouseEvent

          Returns any

    • Optional mouseUp: (e: MouseEvent) => any
        • (e: MouseEvent): any
        • Parameters

          • e: MouseEvent

          Returns any

    • Optional mouseMove: (e: MouseEvent) => any
        • (e: MouseEvent): any
        • Parameters

          • e: MouseEvent

          Returns any

    Returns Mouse

Properties

button

button: 0 | 1 | 4 | 2 | 3
memberof

Mouse

description

The Mouse button

since

2.0.0

descriptor

descriptor: string
memberof

Mouse

description

The Mouse descriptor

since

2.0.0

game

game: Game
memberof

Mouse

description

Game instance

since

2.0.0

mouseInput

mouseInput: MouseInput
memberof

Mouse

description

The MouseInput that the Mouse is attached to

since

2.0.0

scene

scene: Scene
memberof

Mouse

description

Scene instance

since

2.0.0

Methods

Protected registerListeners

  • registerListeners(): void

Generated using TypeDoc