Skip to content

Fix mixed input leaving the virtual mouse unresponsive for 2 seconds - #939

Open
lfbusta wants to merge 1 commit into
isXander:mainfrom
lfbusta:fix/mixed-input-cursor-delay
Open

Fix mixed input leaving the virtual mouse unresponsive for 2 seconds#939
lfbusta wants to merge 1 commit into
isXander:mainfrom
lfbusta:fix/mixed-input-cursor-delay

Conversation

@lfbusta

@lfbusta lfbusta commented Jul 28, 2026

Copy link
Copy Markdown

Problem

With Mixed Input enabled, the virtual mouse goes dead for two seconds every time you touch the native mouse.

The main advantage of mixed input is that you can switch freely between controller and M+K. As it stands, this works for all inputs except for virtual vs native mouse. This is particularly evident when using gyro-to-mouse to move the camera, but the joystick/D-Pad to move around inventories. A 2s delay for switching becomes a real issue when wanting to quickly switch between gameplay and inventory management. This is a very common setup, so as not to have to rely on mouse emulation through joystick.

This is #130. That was closed by shortening the wait from three seconds to two, which made it less annoying without removing it.

Steps to Reproduce

  1. Set your controller to control the native mouse.
  2. Jiggle the controller input that controls the mouse and quickly open the inventory.
  3. Immediately try to use the virtual mouse.

Before This Fix

  • Virtual mouse is unresponsive for 2s.
Before.mov

After This Fix

  • Virtual mouse is responsive immediately.
After.mov

Testing

  • Green on CI across all targets in versions.json.

@lfbusta

lfbusta commented Jul 28, 2026

Copy link
Copy Markdown
Author

As someone who's been playing minecraft with a controller for about 13 years I'm a huge fan of this project btw. I think you're doing an amazing job and hope this PR helps a little bit!

@isXander isXander left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just remove your changes from the changelog and I will be happy to merge!

Reclaim the virtual cursor as soon as controller input resumes so mixed-input inventories do not leave joystick cursor control unresponsive for the full timeout.
@lfbusta
lfbusta force-pushed the fix/mixed-input-cursor-delay branch from 675ea9e to f33e65e Compare July 30, 2026 07:16
@lfbusta

lfbusta commented Jul 30, 2026

Copy link
Copy Markdown
Author

Please just remove your changes from the changelog and I will be happy to merge!

Thats awesome! Done!

@lfbusta
lfbusta requested a review from isXander July 30, 2026 07:17
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