NotEnoughItems Unofficial 1.7.10

NotEnoughItems Unofficial 1.7.10

436k Downloads

Cannot remap Recipe Back button

billvardou opened this issue ยท 4 comments

commented

I have tried remapping the default Back Recipe button (which is bound to keyboard "BACK") to my mouse's physical back button. The button is not recognised when i press it at all and it defaults to "NONE". I have tried binding the same button to other default minecraft options, and as I observed at the config files, my mouse's button value is -97. I tried hard coding the value to the client.cfg config file of NEI, but it reverts to the default value of keyboard "BACK" button, which is 14. Any thoughts? Has anyone else encountered something similar?
Screenshot_1

commented

I too would love this to be fixed. It was a bug in the original NEI as well, so not a bug that was introduced from this fork, to be clear.

My workaround, as an end user was to bind my mouse's back button to a keyboard key that I never use but only for while the game is in focus (so you'll need to use the software that supports your particular mouse to do this). Then, I set the key to go to the previous recipe to that keyboard key that I have my mouse back button assigned to. Voila! It works. But it's a pain, and I wish that I didn't have to jump through all of those hoops just to have a playable experience.

commented

I'll have to look into this; but my initial assumption is that it's a limitation on the underlying LWJGL 2.x that MC 1.7.10 uses.

To narrow this down - Does binding the mouse button work as a keybind option in MC (not NEI specific)?

commented

I believe this to be a limitation of LWJGL. You could look into an external program (auto hotkeys, or something of the like) that would map the mouse back button to a keyboard code that could be mapped.

commented

Sorry to resurrect this long closed discussion, but could it not be possible to backport the way that JEI handles its keybinds by letting the user configure it inside the Minecraft "Options... -> Controls..." UI instead?

I just tested and confirmed that I was able to map the jump function to "Button 4" on my mouse and it lets me jump with that mouse button.

I understand that this greatly increases the scope of the project, but I've seen several other JEI features get backported to NEI in the past. Perhaps this idea could be put in the backlog, though.