-
-
Notifications
You must be signed in to change notification settings - Fork 35
Keybind Functions
wagyourtail edited this page Sep 20, 2020
·
9 revisions
the keybind functions are:
Example: keybind.key("key.keyboard.w", True);
Presses/Depresses a key.
Example: keybind.getKeyBindings()
returns a Map<String, String>
of keybind -> bound key.
Example: keybind.setKeyBind(bind, keycode)
sets the bound key for a keybind.
Example: keybind.keyBind(bindName, pressed)
uses the name of a bind, rather than the name of a key to set the pressed state.
Example: keybind.getPressedKeys()
returns a List<String>
of keys that are currently pressed.
Example: keybind.getKeyCode("key.keyboard.w");
Returns a net.minecraft.client.util.InputUtil.KeyCode
.
Example: keybind.key(keybind.getKeyCode("key.keyboard.w"), True);
Presses/Depresses a key.