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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onKeyboard
(Component target, char key, int x, int y) Sets the keyboard callback for the current window.
-
Method Details
-
onKeyboard
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
-