Skip to content

five-on-it / apps/client/src/renderer/mouse / createMouse

Function: createMouse() ​

createMouse(canvas, onUi?): Mouse

Defined in: apps/client/src/renderer/mouse.ts:39

Tracks the pointer over canvas; onUi says whether a point of it (CSS px from its top-left) lies on a panel of the in-game UI that takes the mouse.

Parameters ​

canvas ​

HTMLCanvasElement

onUi? ​

(x, y) => boolean

Returns ​

Mouse