Mouse Cursor in HTML5 build

How to change mouse cursor in HTML5 build?

I’ve tried to use plugin.mousecursor but it’s not working in html5, same as native.setProperty(“mouseCursorVisible”, false).

Changing document.body.style.cursor or canvas.style.cursor wasn’t helpful.

Also I’ve noticed that when I change canvas.style.cursor in Chrome Inspector, it turns back to “default” value right away.

So, I found the “solution”.

I followed these steps:

  1. Unzip compiled bin-file.

  2. Open js-file from unzipped folder

  3. Beautify first line

  4. Find there 

    Module[“canvas”].style[“cursor”] = Module"Pointer_stringify"

and comment it.

  1. Make it archive again, rename to .bin, replace original bin-file. 

  2. In index.html set canvas.style.cursor property to “pointer”

Of course, it is very very bad way. I hope someone will suggest me something better, but I’m not sure that it’s possible now.

native.setProperty(“mouseCursorVisible”, true/false) will be implemented soon

@rockstar.koenig ‘mouseCursorVisible’ getter/setter implementation will come with next daily build.

Great! Thanx! Will be waiting

So, I found the “solution”.

I followed these steps:

  1. Unzip compiled bin-file.

  2. Open js-file from unzipped folder

  3. Beautify first line

  4. Find there 

    Module[“canvas”].style[“cursor”] = Module"Pointer_stringify"

and comment it.

  1. Make it archive again, rename to .bin, replace original bin-file. 

  2. In index.html set canvas.style.cursor property to “pointer”

Of course, it is very very bad way. I hope someone will suggest me something better, but I’m not sure that it’s possible now.

native.setProperty(“mouseCursorVisible”, true/false) will be implemented soon

@rockstar.koenig ‘mouseCursorVisible’ getter/setter implementation will come with next daily build.

Great! Thanx! Will be waiting