Class KeyBindsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class KeyBindsScreen extends OptionsSubScreen
  • Field Details

    • TITLE

      private static final Component TITLE
    • selectedKey

      public @Nullable KeyMapping selectedKey
    • lastKeySelection

      public long lastKeySelection
    • keyBindsList

      private KeyBindsList keyBindsList
    • resetButton

      private Button resetButton
    • lastPressedKey

      private InputConstants.Key lastPressedKey
      Neo: holds the last pressed key for use in keyReleased(KeyEvent) to configure the selected key mapping
    • lastPressedModifier

      private InputConstants.Key lastPressedModifier
      Neo: holds the last pressed modifier key for use in keyReleased(KeyEvent) to configure the selected key mapping
    • isLastKeyHeldDown

      private boolean isLastKeyHeldDown
      Neo: indicates whether the last pressed key is still held down
    • isLastModifierHeldDown

      private boolean isLastModifierHeldDown
      Neo: indicates whether the last pressed modifier key is still held down
    • ignoreNextRelease

      boolean ignoreNextRelease
      Neo: set by KeyBindsList to ensure the key press that assigns selectedKey is ignored on release (doesn't itself get set as the value)
  • Constructor Details

    • KeyBindsScreen

      public KeyBindsScreen(Screen lastScreen, Options options)
  • Method Details