Skip to content

Conversation

@superboo07
Copy link
Contributor

This solution is pretty bad, however much you hate it I hate it so much more. Why would anyone draw another cursor when most operating systems have one right there? However I could not find another way to stop the system cursor from automatically disappearing, also since I don't know how to rip the cursor image from the game or call it I used the pointer included for selection boxes.

If you want to see the issue this fixes in action, then all you have to do is not move your physical mouse while using the cursor emulator on the release build. You will quickly see that despite the joysticks moving the mouse around, it will disappear. I do not know if this behavior is the same on windows, but its definitely like this on Linux and this is the only way I could think of to fix it.

I greatly apologize for the travesty of jank this fix brings, but at least with its jank Steam Deck users will no longer have their cursor disappear while using this mod.

@ManlyMarco
Copy link
Owner

When exactly does the cursor disappear and in which game? Can you give steps on how to reproduce the issue? I could not reproduce it with KKS under Windows 10 even after waiting for some time.

The fix is a bit too jank, there must be a better solution to this that doesn't involve messing with how things are drawn.

@superboo07
Copy link
Contributor Author

superboo07 commented Jan 9, 2025

Its a linux issue only I believe, I don't have sunshine so I don't know if it occurs there but I imagine it does. I tried finding simplier ways to solve this but drawing a new cursor was the best way I could find. To make it occur just run the game in linux, and use the controller cursor, it will quickly disappear. What distro you use may affect the issue, I tested it on the steam os install on my steam deck. I tried testing it on my laptop which uses arch linux with KDE Plasma but I couldn't get my xbox controller to work with the game since I'd need to do the jank with steam configs I did on my deck. However since Steam OS is very arch linux based and uses KDE Plasma I imagine the issue is the same.

@superboo07
Copy link
Contributor Author

hoping to rip the cursor image from the game soon when I have the paitence to deal with a unity ripper. So that at least this jank can mostly be invisible.

I could also check if its running in wine and only apply this fix if so; as its pretty easy to check. But idk how I feel about writing something that checks the windows registry in a dll mod, even if its just checking for the existence of the HKEY_CURRENT_USER\Software\Wine\ key. So making it invisible by drawing the same cursor image is the way I think would much prefer.

@ManlyMarco
Copy link
Owner

ManlyMarco commented Jan 11, 2025

Maybe? https://wiki.archlinux.org/title/Unclutter
If this was the cause then it should be possible to avoid the issue by simulating mouse inputs, probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants