tutorial:keybinds
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:keybinds [2025/12/09 17:28] – mcgambingpro | tutorial:keybinds [2025/12/12 16:57] (current) – fix half-finished mojmapping cassiancc | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| Adding a key-bind is easy. You'll need to: | Adding a key-bind is easy. You'll need to: | ||
| * open or create a Client [[documentation: | * open or create a Client [[documentation: | ||
| - | * create a Keybinding.Category object | + | * create a KeyMapping.Category object |
| - | * create a KeyBinding | + | * create a KeyMapping |
| * react to the key being pressed | * react to the key being pressed | ||
| - | See [[https:// | + | See [[https:// |
| ==== Preparing an Entrypoint ==== | ==== Preparing an Entrypoint ==== | ||
| Line 49: | Line 49: | ||
| </ | </ | ||
| - | KeyBindingHelper has a Builder for initialization. It takes in an Identifier, InputUtil.Type, | + | KeyBindingHelper has a Builder for initialization. It takes in an Identifier, InputUtil.Type, |
| <code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
| Line 60: | Line 60: | ||
| </ | </ | ||
| - | On versions older than 1.21.9, you would substitute your Keybinding.Category for the translation key of the keybinding' | + | On versions older than 1.21.9, you would substitute your KeyMapping.Category for the translation key of the keybinding' |
| Sticky keys can also be created with '' | Sticky keys can also be created with '' | ||
tutorial/keybinds.1765301303.txt.gz · Last modified: 2025/12/09 17:28 by mcgambingpro