Interface KeyboardCallback

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 interface KeyboardCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onKeyboard(Component target, char key, int x, int y)
    Sets the keyboard callback for the current window.
  • Method Details

    • onKeyboard

      void onKeyboard(Component target, char key, int x, int y)
      Sets the keyboard callback for the current window. void glutKeyboardFunc (void (*func)(unsigned char key, int x, int y))
      Parameters:
      target - Rendering target component
      key - Generated ASCII character (i.e. 'a' or 'A' depending on SHIFT key)
      x - Window relative coordinate x of mouse when event has occurred
      y - Window relative coordinate y of mouse when event has occurred