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/09/30 09:43] fudgetutorial:keybinds [2020/02/02 02:29] draylar
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's Category ====
 +If you opt to use a custom keybind category, you'll need to add it to the category list. 
 +<code java>
 +KeyBindingRegistry.INSTANCE.addCategory(String categoryName);
 +</code>
 +'categoryName' should match the 4th argument provided while calling 'Builder.create'. If you don't do this, a warning will appear in console.
  
 ==== Registering your Keybind ==== ==== Registering your Keybind ====
tutorial/keybinds.txt · Last modified: 2023/12/27 13:14 by 2601:188:cb7c:25a0:19fa:9122:4e5a:fad1