handle input at higher rate than render rate

This commit is contained in:
yugecin
2017-01-10 13:02:40 +01:00
parent 6857393315
commit 7162f8bc7d
6 changed files with 61 additions and 13 deletions

View File

@@ -42,6 +42,10 @@ public class EmptyRedState implements OpsuState {
}
}
@Override
public void preRenderUpdate(int delta) {
}
@Override
public void render(Graphics g) {
g.setColor(Color.red);
@@ -69,6 +73,7 @@ public class EmptyRedState implements OpsuState {
@Override
public boolean mouseWheelMoved(int delta) {
System.out.println("moved");
return false;
}

View File

@@ -42,6 +42,10 @@ public class EmptyState implements OpsuState {
}
}
@Override
public void preRenderUpdate(int delta) {
}
@Override
public void render(Graphics g) {
g.setColor(Color.green);