Removed 3d input from top menu bar.

This commit is contained in:
Willem Cazander 2022-03-13 15:39:58 +01:00
parent 59a896949b
commit 8bc548ae84

View file

@ -22,6 +22,14 @@ public class DeskAppInputProcessor implements InputProcessor {
return filtering; return filtering;
} }
private boolean isFilterMenu(int screenY) {
// font22 + margin top-bottom = 26px
if (screenY <= 26) {
return true;
}
return false;
}
@Override @Override
public boolean keyDown(int keycode) { public boolean keyDown(int keycode) {
if (filtering) { if (filtering) {
@ -51,6 +59,9 @@ public class DeskAppInputProcessor implements InputProcessor {
@Override @Override
public boolean touchDown(int screenX, int screenY, int pointer, int button) { public boolean touchDown(int screenX, int screenY, int pointer, int button) {
if (isFilterMenu(screenY)) {
return false;
}
if (filtering) { if (filtering) {
return false; return false;
} else { } else {
@ -60,6 +71,9 @@ public class DeskAppInputProcessor implements InputProcessor {
@Override @Override
public boolean touchUp(int screenX, int screenY, int pointer, int button) { public boolean touchUp(int screenX, int screenY, int pointer, int button) {
if (isFilterMenu(screenY)) {
return false;
}
if (filtering) { if (filtering) {
return false; return false;
} else { } else {
@ -69,6 +83,9 @@ public class DeskAppInputProcessor implements InputProcessor {
@Override @Override
public boolean touchDragged(int screenX, int screenY, int pointer) { public boolean touchDragged(int screenX, int screenY, int pointer) {
if (isFilterMenu(screenY)) {
return false;
}
if (filtering) { if (filtering) {
return false; return false;
} else { } else {
@ -78,6 +95,9 @@ public class DeskAppInputProcessor implements InputProcessor {
@Override @Override
public boolean mouseMoved(int screenX, int screenY) { public boolean mouseMoved(int screenX, int screenY) {
if (isFilterMenu(screenY)) {
return false;
}
if (filtering) { if (filtering) {
return false; return false;
} else { } else {