@Environment(value=CLIENT) @FunctionalInterface public static interface ScreenKeyboardEvents.BeforeKeyPress
Modifier and Type | Method and Description |
---|---|
void |
beforeKeyPress(net.minecraft.client.gui.screen.Screen screen,
int key,
int scancode,
int modifiers)
Called before a key press is handled.
|
void beforeKeyPress(net.minecraft.client.gui.screen.Screen screen, int key, int scancode, int modifiers)
key
- the named key code which can be identified by the constants in GLFW
scancode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held downorg.lwjgl.glfw.GLFW#GLFW_KEY_Q
,
Modifier key flags