User Tools

Site Tools


tutorial:keybinds

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:keybinds [2019/05/26 16:46] – Syntax highlighting jamieswhiteshirttutorial:keybinds [2019/09/30 09:43] fudge
Line 23: Line 23:
 <code java [enable_line_numbers="true"]> <code java [enable_line_numbers="true"]>
 keyBinding = FabricKeyBinding.Builder.create( keyBinding = FabricKeyBinding.Builder.create(
-    new Identifier("wiki-keybinds", "spook"), +    new Identifier("tutorial", "spook"), 
-    InputUtil.Type.KEY_KEYBOARD,+    InputUtil.Type.KEYSYM,
     GLFW.GLFW_KEY_R,     GLFW.GLFW_KEY_R,
     "Wiki Keybinds"     "Wiki Keybinds"
Line 35: Line 35:
 ==== Registering your Keybind ==== ==== Registering your Keybind ====
  
-To register your keybinding, use the **KeybindingRegistry**:+To register your keybinding, register using the **KeybindingRegistry**, **in the client mod initializer**:
  
 <code java> <code java>
tutorial/keybinds.txt · Last modified: 2023/12/27 13:14 by 2601:188:cb7c:25a0:19fa:9122:4e5a:fad1