I Google and Googled and all I could find is that I need to make my own class that implements Input Processor since that had a scrolling method. Now I did that and have a bunch of methods for handling input, but I have no idea what I'm doing with this whatsoever. What I'm trying to make is for my game to zoom in when the mouse wheel goes forward, and zoom out when the mouse wheel goes backwards. I already created an instance of my processor and set it as the input processor.
Method From my class that implements input processor (Which I have no idea how to use)
public boolean scrolled(int amount) {
return false;
}
From my other class which is supposed to check if the mouse wheel is used. The code here is just testing because I have no idea how this method works:
if(Gdx.input.getInputProcessor().scrolled(1)){
camera.zoom += .05f;
System.out.println("Scrolled forward.");
}