synthesized mouse cursor
for when you've got a fullscreen game, but you want a cursor.
var interact = require'interact'cursor = require'./index'elementvar pointer = interactdocumentbodycurrentpointeron'attain'var to = current = cursorelement trueelement = toelementmovementspipetoifcurrentcurrentclickevbutton
creates a cursor element if none is given, and returns it as a writable
stream suitable for piping
interact movement streams into.
constrainToWindow isn't given, it defaults to
true; the cursor will
not be able to leave the window.
dispatchHover isn't given, it defaults to
false; enabling it will
mouseout events to the elements hovered. note that
this is experimental and slow.
dispatch a click event to the currently hovered element.
the element representing the cursor.
the element currently hovered.