korge icon indicating copy to clipboard operation
korge copied to clipboard

Support custom cursor images

Open soywiz opened this issue 5 years ago • 4 comments

Right now we can change the cursor to a predefined one, but would be nice to support custom cursor images.

soywiz avatar Sep 16 '20 13:09 soywiz

I know we touched on this in Discord but was wondering if this should include hiding cursor as well? A use case I can think of is wanting to the hide cursor in game and have a static centered image as a "cursor" (similar to how and FPS cursor would work).

LeHaine avatar May 04 '21 17:05 LeHaine

Related task: https://github.com/korlibs/korge/issues/636

soywiz avatar May 04 '21 17:05 soywiz

In JS you can't hide the cursor unless you are pressing I guess. I guess that behaviour might make sense as 3D implementation evolves and people want to make FPSs

soywiz avatar May 04 '21 17:05 soywiz

Just a note, JS has Pointer Lock API. It's not exactly what @LeHaine is looking force, but having something similar in Korge might be of interest. https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API

jfbilodeau avatar May 04 '21 20:05 jfbilodeau