Skip to content

ReaQwQ/SideButtonFix

Repository files navigation

SideButtonFix

A precise input stabilizer for Fabric 1.21.4.

SideButtonFix is a lightweight Fabric mod designed to eliminate software-level chattering and accidental double-clicks from mouse side buttons (Mouse 4 & 5). By implementing a high-precision millisecond debounce window, it ensures that every physical intention results in exactly one logical action.

Features

  • Universal Debounce Logic: Applies a configurable timing window to side button inputs to filter out mechanical switch chatter and noise.
  • Input Integrity: Specifically targets GLFW mouse button IDs 3 and 4 (Back/Forward) to protect navigation and hotkey reliability without affecting main click performance.
  • Configurable Thresholds: Includes a configuration file to fine-tune the debounce timing to match your specific hardware's latency profile.

Configuration

The mod generates a configuration file at .minecraft/config/side-button-fix.json:

  • debounceTime: The window (in milliseconds) within which consecutive clicks are considered chattering and are discarded (Default: 50).

Technical Breakdown

SideButtonFix utilizes Mixin to hook into the low-level net.minecraft.client.Mouse.onMouseButton handler. This ensures that filtering happens before the input is dispatched to the game logic, GUI, or key-bind system.

Fair Play & Integrity

  • Status: Purely a stability utility.
  • Compliance: Does not automate actions, create macros, or provide an unfair advantage. It simply ensures the client correctly interprets single physical button presses as intended by the user.

Compatibility

  • Version: Fabric 1.21.4
  • Dependencies: Requires Fabric API.

Developed by ReaQwQ

About

Lightweight Fabric mod to stabilize mouse side button inputs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages