Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MouseController

MouseController class to represent a Mouse input.

Note: Is the mouse move event being fired constantly? Bug report: https://code.google.com/p/chromium/issues/detail?id=390326&thanks=390326&ts=1404171639 This is an issue with Windows on Chrome (and some other browsers on Windows). Some programs may constantly send a WM_MOUSEMOVE signal, causing chrome to fire mouse move events even if the mouse pointer is not moving.

To combat this bug, we will track coordinates and only notify when these coordinates are changed.

Hierarchy

Index

Constructors

constructor

Properties

Private _eventDetails

_eventDetails: MouseEventDetail

Private _x

_x: number

Private _y

_y: number

Static defaultMaxListeners

defaultMaxListeners: number

Methods

Protected _attachEvents

  • _attachEvents(): void

Private _contextMenuHandler

  • _contextMenuHandler(e: MouseEvent): void

Protected _fireEvent

Private _getMouseButton

Private _mouseDownHandler

  • _mouseDownHandler(e: MouseEvent): void

Private _mouseMoveHandler

  • _mouseMoveHandler(e: MouseEvent): void

Private _mouseUpHandler

  • _mouseUpHandler(e: MouseEvent): void

Protected _onMouseDown

  • _onMouseDown(): void

Protected _onMouseMove

  • _onMouseMove(): void

Protected _onMouseUp

  • _onMouseUp(): void

Protected _onMouseWheel

  • _onMouseWheel(): void

Private _updateEventDetail

  • _updateEventDetail(e: MouseEvent): void

Private _wheelHandler

  • _wheelHandler(e: MouseEvent): void

addListener

  • addListener(event: string | symbol, listener: function): this

destroy

  • destroy(): void

emit

  • emit(event: string | symbol, ...args: any[]): boolean

eventNames

  • eventNames(): Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number

initialize

listenerCount

  • listenerCount(type: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

on

  • on(event: string | symbol, listener: function): this

once

  • once(event: string | symbol, listener: function): this

prependListener

  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeListener

  • removeListener(event: string | symbol, listener: function): this

setMaxListeners

  • setMaxListeners(n: number): this

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc