Refactor: Route key input through EventBus

- Post EventKey from 1.8.9 KeyBinding/GuiScreen hooks

- Hook 26.2 KeyboardHandler#keyPress so keys fire while walking

- Normalize 26.2 GLFW key codes to 1.8.9 LWJGL 2 codes

- Drive the GUI toggle from InputController instead of tick polling
This commit is contained in:
xiaozhou233 committed 2026-11-07 16:48:26 +08:00
1 parent 70d8a854ea
commit a84b04877d
18 files changed
+352 -164

No files matched your search

@@ -61,6 +61,10 @@ public final class Hooks {
InputEvents.onKeyPressed(keyCode);
}
public static void inputGlfwKeyPressed(int glfwKeyCode) {
InputEvents.onGlfwKeyPressed(glfwKeyCode);
}
public static boolean isOurScreen(Object screen) {
return InputEvents.isOurInputScreen(screen);
}