Posted October 25, 20186 yr So, say I've got a `Keybinding testBind = new Keybinding("TestKeybind", Keyboard.KEY_F, "")`, and I'd like to change the key that it responds to. The problem is, even if I use `testBind.setKeyCode(Keyboard.KEY_P)` or something, it won't stop responding to 'F'. How can I change it? I am a human and this action was performed manually. Please contact Frontear if you have any questions or concerns.
October 25, 20186 yr I think you have to call KeyBinding.resetKeyBindingArrayAndHash after you've changed your key code in your keybinding to recalculate the cached keyCode <-> keybinding map.
October 25, 20186 yr Author That was it, thank you! I am a human and this action was performed manually. Please contact Frontear if you have any questions or concerns.
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.