Supplementaries

Supplementaries

82M Downloads

[Mod Compat] Controlify

isXander opened this issue ยท 0 comments

commented

https://github.com/MehVahdJukaar/Supplementaries/blob/1.20-split/fabric/src/main/java/net/mehvahdjukaar/supplementaries/common/events/fabric/ClientEventsFabric.java#L70

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!