FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

"Mimic Keybind" action

caelaThinx opened this issue ยท 0 comments

commented
  • Mimics pressing a specific keybind of one of the existing keybinds of Minecraft's keybind list
  • Executes whatever happens on keypress
  • Should use a custom config screen based on StringBuilderScreen (or CellScreen, which is its superclass)
  • For selecting the keybind, it should have a suggestions list for all available keybinds attached to the input field for inputting whatever is best to use for targetting a keybind (probably its localization key or whatever is used internally for that) (for suggestions list implementation, see other actions and similar stuff that already uses suggestion lists on input fields)
  • Could have an option to input a number in millis for how long the keybind should keep getting pressed (default 0 for disabled) (the "keep pressed" logic should get handled in a different thread to not block the main thread, but make sure to do the actual press action on the main thread to not crash the game) (it should in that case probably just spawn a thread that keeps the keybind pressed, even tho other actions could maybe press the same keybind again in the meantime)