private int scroll;
public void drawScreen(blabla) {
drawSomething(x, y - scroll);
}
public void handleMouseInput() {
super.handleMouseInput();
int dw = Mouse.getEventDWheel();
if(dw != 0) {
if (dw > 0) {
dw = -1;
} else {
dw = 1;
}
float amountScrolled = (float) (dw * 10);
if (scroll + amountScrolled > 0)
scroll += amountScrolled;
else
scroll = 0;
}
}