Class ScreenEvent.KeyboardKeyPressedEvent.Pre

Enclosing class:
ScreenEvent.KeyboardKeyPressedEvent

public static class ScreenEvent.KeyboardKeyPressedEvent.Pre extends ScreenEvent.KeyboardKeyPressedEvent
This event fires when keyboard input is detected for a GuiScreen, before it is handled. Cancel this event to bypass GuiEventListener.keyPressed(int, int, int).
  • Constructor Details

    • Pre

      public Pre(Screen screen, int keyCode, int scanCode, int modifiers)