mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user