[Mod Compat] Controlify
isXander opened this issue ยท 0 comments
Here you check if the bind is pressed every frame, this is not the correct way to do this.
Like all binds in vanilla, it should be checked once per tick (when keys are updated).
This creates a problem for controller users, where Controlify relies on mods checking bindings correctly to be able to emulate presses. Checking GLFW directly for the key to be down does not and will not work.
This is a simple fix, move the above section of code into the ClientTickEvents.END_CLIENT_TICK
event and call KeyMapping#isPressed
normally!