TeamMidnightDust / MidnightControls

A Minecraft mod adding controller support and enhanced controls overall.
https://midnightdust.eu/midnightcontrols/
MIT License
174 stars 28 forks source link

Feature: Handle mouse cursor visibility based on input mode #223

Open GammaBoost opened 9 months ago

GammaBoost commented 9 months ago

If you are using a keyboard and mouse (vanilla) then the mouse cursor will disappear when locked to the screen as it's supposed to. However when you use a controller the mouse cursor stays on screen. You can make the cursor disappear with the provided option, but then it's always hidden (and a bug prevents you from getting it back until a restart). This is really annoying since some menus can be navigated a lot easier with a mouse, but you don't want the mouse cursor to show in game. (Using the option for a controller cursor can fix this but that screws with the controller navigation on some screens)

What should happen is that the cursor appears when you touch the mouse in a menu, then disappears when you touch the controller, how most games handle this.

If this isn't possible then at least lock the mouse cursor like the game usually does during gameplay.

Some other improvements I would like, while I'm here: Allow bindings to be individually set to be either toggle or hold (useful for zoom mods) Make it so then you can enable the option to have sneaking toggled when on ground and held when flying Make scrolling menus work with the controller cursor Make the hints and hotbar movable to make space for other mod hud elements

There's also a controller bug I've found, where the guide button doesn't do anything on newer versions of Windows, and as I said before, a bug where the mouse cursor won't reappear when you turn off the disappearing option.

I am using Windows 10 22H2 and Fabric 1.20.1.

I hope this isn't too much in one request. Thank you.