Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Mouse icon moves to other Minecraft screen, or vanishes when in inventory #37

Open
megabytesme opened this issue Nov 1, 2019 · 7 comments

Comments

@megabytesme
Copy link

Minecraft 1.14.4
Forge 28.1.76
OptiFine HD U F4
Controllable-1.14.4-0.6.1
PS4 Controller CUH-ZCT2E and XBOX 360 Afterglow USB controller

Whenever I do split-screen, multi-monitor, etc Minecraft (having 2 people play at once, one using m&k with other using controller) in the inventory of the player that uses the controller if an item is picked up from any slot, the controller mouse icon thing locks into place, or if doing multiplayer split-screen it locks onto the side of the controllers player window facing the mouse and keyboard player's window.

Otherwise everything else functions perfectly, even while doing splitscreen.

@MrCrayfish
Copy link
Owner

Have you turned on Virtual Mouse for both instances?

@megabytesme
Copy link
Author

megabytesme commented Nov 1, 2019

I have virtual mouse on the modded Minecraft session and vanilla Minecraft on the other on the same pc. Do both need to use the mod, even though one uses Mouse and keyboard?

@megabytesme
Copy link
Author

I have just tried using controllable for both instances of Minecraft, with no luck. The same thing happens on the controller player's screen with Virtual Mouse enabled on both the controller player's and mouse and keyboard player's screen.

@megabytesme
Copy link
Author

Here is a video of the issue, if it helps.
https://drive.google.com/file/d/19KzJZjX9DzTY-ukI4Dcl6LKRg7NNaUoI/view?usp=sharing

FusionLord pushed a commit to FusionLord/Controllable that referenced this issue Nov 9, 2019
This fix prevent Minecraft from moving the hardware cursor when virtual mouse is enabled;
It also automatically prevents pausing if the game isn't focused
FusionLord pushed a commit to FusionLord/Controllable that referenced this issue Nov 9, 2019
@MrCrayfish
Copy link
Owner

Is this a problem on the lastest version? I patched some issues related to Optifine and I noticed the video you sent you are using Optifine.

@megabytesme
Copy link
Author

Is this a problem on the lastest version? I patched some issues related to Optifine and I noticed the video you sent you are using Optifine.

Hi there.

This was nearly 2 years ago, so I have long since uninstalled it. I'll try it again and tell you if it is still the same (either tomorrow or the day after). Thanks

@MrCrayfish
Copy link
Owner

Just checking in to see if you have an update @megabytesme. All good if you haven't got around to it yet.

michaeltyson added a commit to michaeltyson/Controllable that referenced this issue Sep 8, 2023
…entory

The mouse cursor coordinate conversion was using “getScreenWidth()” rather than “getWidth()” (i.e. using the screen size, rather than the window size), which was resulting in an incorrect scaling factor. This fixes it, in all the places it’s used.

This should fix:

MrCrayfish#440 - Inventory Items are far off screen to the right when selected
MrCrayfish#425 - Inventory Movement Issues
MrCrayfish#336 - Items and cursor turn invisible when trying to re-order items in inventory
MrCrayfish#214 - MacOS Distortion [Unplayable] on ALL Mod Versions
MrCrayfish#37 - Bug: Mouse icon moves to other Minecraft screen, or vanishes when in inventory

This issue is a show-stopper on macOS, and possibly on Windows with a Hi-DPI display, so I believe it’s quite high priority.
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 a pull request may close this issue.

2 participants