()
| 51 | } |
| 52 | |
| 53 | public void render () { |
| 54 | // set the clear color and clear the screen. |
| 55 | ScreenUtils.clear(1, 1, 1, 1); |
| 56 | |
| 57 | if (Gdx.input.isTouched()) { |
| 58 | Gdx.graphics.setCursor(cursor1); |
| 59 | } else { |
| 60 | cursorActive = !cursorActive; |
| 61 | if (cursorActive) { |
| 62 | Gdx.graphics.setCursor(cursor2); |
| 63 | } else { |
| 64 | Gdx.graphics.setCursor(cursor3); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | } |