Class IMouse

An encapsuled class to get mouse position.

mouse: The same as Shadertoy's iMouse

mouseDOM: The DOM position of the mouse

mouseDOMDelta: The DOM position delta of the mouse

mouseScreen: Mesh position following the mouse on the screen

Hierarchy (view full)

Constructors

Properties

base: Base
container: Scene
emitter: Emitter<any>
isMouseMoving: boolean
mouse: Vector2
mouseDOM: Vector2
mouseDOMDelta: Vector2
mouseMoveOffset: number
mouseScreen: Vector2
prevMouseDOM: Vector2

Methods