Removed 3d input from top menu bar.
This commit is contained in:
parent
59a896949b
commit
8bc548ae84
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue