- 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.
-
Method Summary
boolean
Checks if a key should be allowed to be pressed.
-
Method Details
-
allowKeyPress
boolean allowKeyPress(Screen screen,
int key,
int scancode,
int modifiers)
Checks if a key should be allowed to be pressed.
- 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
- Returns:
- whether the key press should be processed
- See Also:
-