Interface EventControllerKey.OnKeyPressed

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

@FunctionalInterface public static interface EventControllerKey.OnKeyPressed
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onKeyPressed(int keyval, int keycode, int state)
    Emitted whenever a key is pressed.
  • Method Details

    • onKeyPressed

      boolean onKeyPressed(int keyval, int keycode, int state)
      Emitted whenever a key is pressed.
      Parameters:
      keyval - the pressed key.
      keycode - the raw code of the pressed key.
      state - the bitmask, representing the state of modifier keys and pointer buttons. See `GdkModifierType`.
      Returns:
      %TRUE if the key press was handled, %FALSE otherwise.