Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

[UI] Can't set cursor image #1627

Open
darrylryan opened this issue Aug 17, 2017 · 5 comments
Open

[UI] Can't set cursor image #1627

darrylryan opened this issue Aug 17, 2017 · 5 comments

Comments

@darrylryan
Copy link
Collaborator

The Urho UI provides a method to set the cursor image however Turbobadger doesn't offer this so this functionality went away with SystemUI.

@Alan-FGR
Copy link
Collaborator

I'm also interested in this... I don't know how the UIs do that, but SDL offers world class xplat cursor image support, including hardware cursors, don't know whether it's available in scripting though.

@Alan-FGR
Copy link
Collaborator

Alan-FGR commented Oct 18, 2017

When you set the hardware cursor using SDL, apparently there's no restriction on image size, what strikes me as a bit odd to say the least, but on my hardware any size seems to work perfectly fine, some engines however restrict hardware cursor to very small sizes (e.g.:32x32px) and fallback to the terrible software cursor when you exceed that size, I couldn't find any reason regarding that limitation on the hardware side though, SDL seems to quite happily use any size, but I'm afraid that in some hardware/platforms that'll break badly. Any ideas on this?

@mattbenic
Copy link
Collaborator

So what is the current issue? Is the ability to set the size just not exposed (since you say you were able to set it)

@Alan-FGR
Copy link
Collaborator

Alan-FGR commented Oct 18, 2017

Nope, you can set it using SDL directly, there's no API and I've no idea on how the UIs set that, Urho UI probably just abstracts the SDL stuff, no idea on TB, but if it's software cursor that's not good, hardware cursor is the way to go but there gotta be some safe limits otherwise other engines wouldn't be fallbacking.

@rezasailo
Copy link

Tank

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants