MacroKey Keybinding

MacroKey Keybinding

315k Downloads

Cant use Mouse 4/5 to bind to?

TomLewis opened this issue ยท 6 comments

commented

Using 1.12.2, Discord links broken in website.

How do I bind mouse 4/5 buttons?

commented

Currently, MacroKey only supports key inputs that are generally recognised. Too bad extra mouse buttons are usually caught by the driver software of your mouse. I am not currently looking to actively support this, but it is certainly worth a little reserach

commented

As a hack/workaround to use until something supports it officially, is to, if your mouse driver supports it, map keys 3+4 to a keyboard character that is not that frequently used (right control or something) and then map that ingame to the macro.

Im actually still on 1.12.2 for my server, I was testing mods for when we upgrade because Im reliant on 4 & 5 for WE for //pos1 and //pos2.
Thanks for the tip.

commented

Sounds good! lets hope it works, I have used https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/1275039-macro-keybind-mod for years that supports it, but they never updated past 1.12.2, so theres a gap in the Macro market for minecraft.

commented

As a hack/workaround to use until something supports it officially, is to, if your mouse driver supports it, map keys 3+4 to a keyboard character that is not that frequently used (right control or something) and then map that ingame to the macro.

commented

After looking around found that the Forge's InputEvent.RawMouseEvent completely supports GLFW, had a working example in the pipeline where I could detect 4 and 5, now just the actual functional logic and UI behind it. Concept can be found here #75

commented

Issue behind UI what I found is that mouse buttons are mapped differently than keyboard buttons, so have to distinguish the input controller within a macro (and on execution of the macro). Also should probably implement something that uses the translations to show the button key instead of printing the raw GLFW key