This commit is contained in:
Anuken
2019-08-30 21:37:10 -04:00
parent b39464a7d1
commit 877cd5968c
5 changed files with 36 additions and 25 deletions

View File

@@ -64,7 +64,9 @@ public class MobileInput extends InputHandler implements GestureListener{
private int prevX, prevY, prevRotation;
public MobileInput(){
Core.input.addProcessor(new GestureDetector(20, 0.5f, 0.4f, 0.15f, this));
Events.on(ClientLoadEvent.class, e -> {
Core.input.addProcessor(new GestureDetector(20, 0.5f, 0.4f, 0.15f, this));
});
}
//region utility methods