Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use Mouse 4/5 to bind to? #68

Open
TomLewis opened this issue Apr 13, 2020 · 6 comments
Open

Cant use Mouse 4/5 to bind to? #68

TomLewis opened this issue Apr 13, 2020 · 6 comments
Labels
Milestone

Comments

@TomLewis
Copy link

Using 1.12.2, Discord links broken in website.

How do I bind mouse 4/5 buttons?

@Matts
Copy link
Owner

Matts commented Oct 28, 2021

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

@TomLewis
Copy link
Author

TomLewis commented Nov 9, 2021

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.

@Matts
Copy link
Owner

Matts commented Nov 9, 2021

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.

@TomLewis
Copy link
Author

TomLewis commented Nov 9, 2021

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.

@Matts
Copy link
Owner

Matts commented Nov 9, 2021

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
Copy link
Owner

Matts commented Nov 9, 2021

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 Matts added the feature label Nov 9, 2021
@Matts Matts added this to the 2.2 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants