Methods
addMouse
- addMouse(button: 0 | 1 | 4 | 2 | 3, descriptor: string, mouseDown?: (e: MouseEvent) => any, mouseUp?: (e: MouseEvent) => any, mouseMove?: (e: MouseEvent) => any): Mouse
Parameters
button: 0 | 1 | 4 | 2 | 3
descriptor: string
Optional mouseDown: (e: MouseEvent) => any
Optional mouseUp: (e: MouseEvent) => any
Optional mouseMove: (e: MouseEvent) => any
Creates a DuckEngine MouseInput
The MouseInput Class. Use the mouse as input
1.0.0-beta