Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mouse

Mouse object which contains position and pressed buttons.

property

{Number} x mouse position x.

property

{Number} y mouse position y.

property

{Array} buttons mouse buttons clicks.

property

{Number} movement.x mouse movement x from last frame.

property

{Number} movement.y mouse movement y from last frame.

property

{Number} sensitivity sensitivity for mouse movement.

Hierarchy

  • Mouse

Index

Properties

actionBeforeMove

actionBeforeMove: null = null

buttons

buttons: boolean[] = [false, false, false]

click

click: boolean = false

duration

duration: null = null

longClick

longClick: boolean = false

movement

movement: Vector2 = new Vector2(0, 0)

Mouse movement

sensitivity

sensitivity: number = 1

x

x: number = 0

Mouse position x.

y

y: number = 0

Mouse position y.

Generated using TypeDoc