tutorial:keybinds
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:keybinds [2019/06/17 16:22] – mapping fix draylar | tutorial:keybinds [2020/02/02 02:28] – draylar | ||
---|---|---|---|
Line 23: | Line 23: | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
keyBinding = FabricKeyBinding.Builder.create( | keyBinding = FabricKeyBinding.Builder.create( | ||
- | new Identifier(" | + | new Identifier(" |
InputUtil.Type.KEYSYM, | InputUtil.Type.KEYSYM, | ||
GLFW.GLFW_KEY_R, | GLFW.GLFW_KEY_R, | ||
Line 32: | Line 32: | ||
GLFW.GLFW_KEY_R can be replaced with whatever key you want the binding to default to. The category is related to how the keybinding is grouped in the settings page. | GLFW.GLFW_KEY_R can be replaced with whatever key you want the binding to default to. The category is related to how the keybinding is grouped in the settings page. | ||
+ | |||
+ | ==== Configuring your Keybind' | ||
+ | If you opt to use a custom keybind category, you'll need to add it. | ||
+ | <code java> | ||
+ | KeyBindingRegistry.INSTANCE.addCategory(String categoryName); | ||
+ | </ | ||
+ | ' | ||
==== Registering your Keybind ==== | ==== Registering your Keybind ==== | ||
- | To register your keybinding, | + | To register your keybinding, |
<code java> | <code java> |
tutorial/keybinds.txt · Last modified: 2023/12/27 13:14 by 2601:188:cb7c:25a0:19fa:9122:4e5a:fad1