Restore Mouse Acceleration

Restore Mouse Acceleration

Restores the Raw Input setting removed in Minecraft 26.3-snapshot-4 and newer

17 downloads 0 followers

Restore Mouse Acceleration

Restores the Raw Input setting removed in Minecraft 26.3-snapshot-4 and newer

By default the setting is enabled just like it used to be, you will have to turn it off to enable mouse acceleration.

How it works

The mod contains 4 mixins that do the following:

  • Adds the Raw Input option back into the Options class almost exactly as it used to be
  • Unconditionally injects the option into the Mouse Settings screen (The old vanilla version had a check)
  • Prevents removal of the deprecated options.rawMouseInput translation so that the option button has a name (Minecraft still contains deprecated translations)
  • Sets the SDL hint described below on Minecraft init

There is also a helper method for setting the SDL hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to the inverse of the raw input boolean value. This is what allows for mouse acceleration to be be enabled.

As a result, the game acts almost as if the setting was never removed.

No gallery available for this project.

Version Minecraft Loader Download

1.1

26.3, 26.3-pre-1, 26.3-pre-2, 26.3-pre-3, 26.3-rc-1, 26.3-rc-2, 26.3-rc-3, 26.3-snapshot-10, 26.3-snapshot-4, 26.3-snapshot-5, 26.3-snapshot-6, 26.3-snapshot-7, 26.3-snapshot-8, 26.3-snapshot-9, 26.4-snapshot-1
fabric
Download

1.0

26.3, 26.3-pre-1, 26.3-pre-2, 26.3-pre-3, 26.3-rc-1, 26.3-rc-2, 26.3-rc-3, 26.3-snapshot-10, 26.3-snapshot-4, 26.3-snapshot-5, 26.3-snapshot-6, 26.3-snapshot-7, 26.3-snapshot-8, 26.3-snapshot-9
fabric
Download