8 years ago by dungeonmaster
Here it is. It works out of the box. Kudos to the guy who shared this.
https://github.com/goldfire/CanvasInput
Tips:
Call it&
Change this line, if you want to hide the default cursor when mouse moves aways from the input box
https://github.com/goldfire/CanvasInput
Tips:
Call it&
039;s #render()
method on each draw.Change this line, if you want to hide the default cursor when mouse moves aways from the input box
self._canvas.style.cursor = 'default';