Hiah!
Just tried out this little snippet earlier:
GLFW.glfwSetScrollCallback( handle, new GLFWScrollCallback() {
@Override
public void invoke(long window, double arg1, double arg2) {
System.out.println("window " + window + " / " + arg1 + " / " + arg2);
}
@Override
public void callback(long arg0) {
//
}
@Override
public String getSignature() {
return "Scroll Callback";
}
@Override
public void close() {
//
}
});
Nothing seems to print when I scroll the mouse. Am I doing something incorrectly?
Yes, do not override the methods callback, getSignature and close.
Perfect! Thank you, Spasi!