Package jgl.wt.awt.listener.callbacks
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onKeyboard(Component target, char key, int x, int y)
Sets the keyboard callback for the current window.
-
-
-
Method Detail
-
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 componentkey
- Generated ASCII character (i.e. 'a' or 'A' depending on SHIFT key)x
- Window relative coordinate x of mouse when event has occurredy
- Window relative coordinate y of mouse when event has occurred
-
-