Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
512 stars 122 forks source link

Add support for custom mouse cursor images #798

Open MoritzBrueckner opened 1 year ago

MoritzBrueckner commented 1 year ago

Is your feature request related to a problem? Please describe. Kinc already allows to change the mouse cursor to common system cursors, but currently there is no way to set a custom cursor image. Kha's cursor API allows something a la mouse.setSystemCursor(MouseCursor.Custom(myCustomImage)), but because it's not implemented in Kinc this currently only takes effect on html5 (and maybe on some less commonly used targets as well) as far as I can see. However, it should be possible to implement a similar functionality also for the Kinc backends.

Describe the solution you'd like Some functionality to set a custom cursor image, similar to Kha's API. Two ideas how this could look like:

Additional context