v1.2.0: fixed touches not clearing controller pointer

This commit is contained in:
Evan Debenham 2022-03-03 16:42:26 -05:00
parent ba568a604f
commit a1344eb898

View File

@ -89,6 +89,7 @@ public class InputHandler extends InputAdapter {
@Override
public synchronized boolean touchDown(int screenX, int screenY, int pointer, int button) {
ControllerHandler.setControllerPointer(false);
Gdx.input.setOnscreenKeyboardVisible(false); //in-game events never need keyboard, so hide it
PointerEvent.addPointerEvent(new PointerEvent(screenX, screenY, pointer, PointerEvent.Type.DOWN, button));
return true;