Package jgl.wt.awt.listener.callbacks
Interface MouseCallback
- 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
-
Method Details
-
onMouse
Sets mouse callback for the current window. void glutMouseFunc (void (*func)(int button, int state, int x, int y))- Parameters:
target
- Rendering target componentbutton
- Mouse button identifier (GLUT_LEFT_BUTTON, etc.)state
- GLUT_UP or GLUT_DOWN indicating mouse button state causex
- Window relative coordinate x of mouse when event has occurredy
- Window relative coordinate y of mouse when event has occurred
-