Cant seem to detect scrolling

Started by orange451, July 08, 2017, 22:03:29

Previous topic - Next topic

orange451

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?

spasi

Yes, do not override the methods callback, getSignature and close.

orange451