rolandoislas / multi-hotbar

Multiple hotbars for Minecraft
http://minecraft.curseforge.com/projects/multi-hotbar
Other
13 stars 4 forks source link

Can you add a config to disable all ALT key mechanics? #49

Open KalaMiDeviL opened 6 years ago

KalaMiDeviL commented 6 years ago

I've got about 3 mods that make use of the mouse wheel with the ALT key held. Sadly, none of them work with this, because your API takes away that option.

rolandoislas commented 6 years ago

The modifier key (left ALT by default) can be rebound in the controls menu. I suspect the cause of the issue would be that Multi-Hot bar cancels the scroll event so it does not propagate to the vanilla handler. Unfortunately, it also means the event will not be propagated to other mods.

Would you list the other mods that have conflicts?

KalaMiDeviL commented 6 years ago

Right now, I can only think of Draconic Evolution's "Enhanced Charm of Dislocation". I'm pretty sure I removed the other 2 mods from my pack for now, so I'll get back to you on that.

KalaMiDeviL commented 6 years ago

Had time for this today, but I can't seem to remember the 2 removed mods. Maybe you could just implement a little compat for the Charm? Don't know how hard that would be. It definitely isn't just a keybind issue with Drac Evo though. I guess you figured long ago, just wanted to write it down.

rolandoislas commented 6 years ago

I looked into it and the issue is with the scrolling, not the keybinds. Draconic Evolution specifically does not cancel the scroll event, instead, it changes the current item. The better solution would be to cancel the event so that vanilla/Multi-Hotbar does not handle it. I have submitted a PR brandon3055/Draconic-Evolution#1061.

In the meantime, there is a hotkey that will toggle between vanilla and Multi-Hotbar. I will (hopefully soon) add a config option that disables scrolling whilst holding down a pre-defined button for mods that do not cancel the scroll event.