libGDX 1.9.9, fix #635

This commit is contained in:
Emux
2019-01-23 12:45:50 +02:00
parent 5eb27b7553
commit 540d6c23f9
6 changed files with 17 additions and 6 deletions

View File

@@ -186,7 +186,7 @@ public abstract class GwtApplication implements EntryPoint, Application {
Gdx.files = new GwtFiles(preloader);
this.input = new GwtInput(graphics.canvas);
Gdx.input = this.input;
this.net = new GwtNet();
this.net = new GwtNet(config);
Gdx.net = this.net;
this.clipboard = new GwtClipboard();
updateLogLabelSize();

View File

@@ -160,6 +160,16 @@ public class GwtInput implements Input {
return touched[pointer];
}
@Override
public float getPressure() {
return 0;
}
@Override
public float getPressure(int pointer) {
return 0;
}
@Override
public boolean isButtonPressed(int button) {
return pressedButtons.contains(button) && touched[0];