Posted November 4, 201311 yr I have a keybinding that i initiliaze with this: public void load(FMLInitializationEvent event) { logger.info("FML Event: load"); proxy.init(this.config); KeyBinding[] key = {new KeyBinding("Radar Settings", Keyboard.KEY_BACKSLASH)}; boolean[] repeat = {false}; KeyBindingRegistry.registerKeyBinding(new TutorialKeyBinder(key, repeat)); } But my keybinding activates even when i have other Gui's active. It activates no matter what. How do i prevent this?
November 4, 201311 yr Hi Vanilla uses this a lot in Minecraft.runTick() http://greyminecraftcoder.blogspot.com.au/2013/10/user-input.html this.currentScreen == null -TGG If you need more flexibility with intercepting the keybinding, this might also be of interest: https://gist.github.com/TheGreyGhost/7033821
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.