MacroKey icon indicating copy to clipboard operation
MacroKey copied to clipboard

Cant use Mouse 4/5 to bind to?

Open TomLewis opened this issue 5 years ago • 6 comments

Using 1.12.2, Discord links broken in website.

How do I bind mouse 4/5 buttons?

TomLewis avatar Apr 13 '20 15:04 TomLewis

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

Matts avatar Oct 28 '21 15:10 Matts

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.

TomLewis avatar Nov 09 '21 12:11 TomLewis

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.

Matts avatar Nov 09 '21 12:11 Matts

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.

TomLewis avatar Nov 09 '21 12:11 TomLewis

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

Matts avatar Nov 09 '21 21:11 Matts

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

Matts avatar Nov 09 '21 21:11 Matts