Interface ScreenKeyboardEvents.BeforeKeyPress

Enclosing class:
ScreenKeyboardEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Environment(CLIENT) @FunctionalInterface public static interface ScreenKeyboardEvents.BeforeKeyPress
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeKeyPress(Screen screen, int key, int scancode, int modifiers)
    Called before a key press is handled.
  • Method Details

    • beforeKeyPress

      void beforeKeyPress(Screen screen, int key, int scancode, int modifiers)
      Called before a key press is handled.
      Parameters:
      key - the named key code which can be identified by the constants in GLFW
      scancode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down
      See Also: