Java Libgdx轻触(触摸)任意位置

Java Libgdx轻触(触摸)任意位置,java,android,android-studio,libgdx,touch,Java,Android,Android Studio,Libgdx,Touch,我正在尝试为Android制作一个游戏,并开始游戏,你可以点击(触摸)任何地方,而无需点击精灵或其他东西。 这可能吗?这是最简单的解决方案 if (Gdx.input.isTouched()) { // is called whenever the finger is on screen touch // screen is touched : finger on the screen } 或: 这是最简单的解决方案 if (Gdx.input.isTouched()) { // is

我正在尝试为Android制作一个游戏,并开始游戏,你可以点击(触摸)任何地方,而无需点击精灵或其他东西。
这可能吗?

这是最简单的解决方案

if (Gdx.input.isTouched()) { // is called whenever the finger is on screen touch
    // screen is touched : finger on the screen
}
或:


这是最简单的解决方案

if (Gdx.input.isTouched()) { // is called whenever the finger is on screen touch
    // screen is touched : finger on the screen
}
或: