Giter VIP home page Giter VIP logo

mcmouser's Introduction

McMouser

A mod that fixes various mouse bugs on macOS

Introduction

Install this mod and you can now play the game like everyone else. Seriously, it's this simple.

Features

  • Fixes Shift + Scroll not working on macOS (MC-121772)
  • Disables Ctrl + Left Click = Right Click emulation

Downloads

The mod supports all major versions of Minecraft since 1.8.9, both Fabric and Forge. If your version is not listed, raise an issue, it is trivial to port the code.

Check out the Releases section, CurseForge, or Modrinth.

Building

The code for each Minecraft version is released in a separate git branch, so check out the one that interests you. Building is as simple as running ./gradlew build, and the mod JAR will be under build/libs.

How does it work

Right-click emulation is achieved in two different ways depending on the version of Minecraft.

For Minecraft <1.13, which use LWJGL2, the emulation is included inside the LWJGL2 native, liblwjgl.dylib. This limits our options, so the mod ships a modified version of the library and forces LWJGL2 to load it instead of the original. For arm64, the library is custom-built from MinecraftMachina/lwjgl2#right-click-fix. For x86_64, the original library is byte patched. For reference, here is the commit that needs to be reverted.

For Minecraft 1.14+, which use LWJGL3, the emulation is performed in regular Minecraft code. This makes it trivial to patch with a mixin.

Shift scroll bug is already fixed by Forge, but for Fabric, it is achieved in the same way via a mixin.

mcmouser's People

Contributors

virb3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.