You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.KeyInputEventevent on mouse input.Vanilla:

PR:
