Skip to content

Add mouse keybind fix#871

Open
decce6 wants to merge 1 commit into
ACGaming:mainfrom
decce6:mouse-keybind-fix
Open

Add mouse keybind fix#871
decce6 wants to merge 1 commit into
ACGaming:mainfrom
decce6:mouse-keybind-fix

Conversation

@decce6

@decce6 decce6 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Previously, if a keybind is bound to a mouse button, the keybind is not triggered until the next keyboard input. This was a flaw in Forge's design in 1.12.2. This PR resolves this issue by firing an additional InputEvent.KeyInputEvent event on mouse input.

Vanilla:
Mouse_WO

PR:
Mouse_W

@what-the-diff

what-the-diff Bot commented Jun 19, 2026

Copy link
Copy Markdown

PR Summary

  • Introduced a new Mouse Keybind Handler: A new logic component was developed, named as UTMinecraftMixin.java. Its role is to manage keybinds when using the mouse. Essentially, it interweaves custom code into the main mouse handling function to trigger equivalent keyboard events when mouse activity is detected.

  • Upgraded Existing Configuration Feature: The configuration class, known as UTConfigBugfixes.java, has been enhanced with a new option, utMouseKeybindFix. This permits users to turn on or off the newly implemented mouse keybind fix simply with a restart of the Minecraft game.

  • Improved Plugin Loader: A modification was made to the UTLoadingPlugin.java plugin loader, incorporating the new mixin (mouse keybind fix) into the plugin's mapping. This ensures the new feature is correctly registered and loaded when the game starts.

  • Added a Configuration File for the Mixin: A new configuration file called mixins.misc.mousekeybind.json was added to set up parameters for the mixin. This includes details such as the mixin package, reference map, compatibility, and the instruction to load the UTMinecraftMixin class that was supplemented.

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.

1 participant