Change/Hide Mouse Cursor?



  • In a game I'm making, I don't want to use the default mouse cursor. Currently I'm following the mouse position with an image, which works ok except the mouse cursor obscures the image (since it's in front).

    A way to make it invisible or (more likely to be useful to everyone) allow me to specify the cursor with an image would be awesome.

    I searched a bit and couldn't find any references to this ability, but perhaps I missed it?

    Thanks!



  • On HTML5, you cannot hide the cursor completely except when the mouse is down AFAIK.
    korge-next already has support for changing the cursor to a predefined one and hiding the cursor while the mouse is down.
    We can try to support custom cursor images. Just created this issue: https://github.com/korlibs/korge-next/issues/28


Log in to reply