Hi,
I am trying to use the change the system cursor but for some reason it keeps using the default arrow cursor.
any idea what I am missing?
I tried this in version libgdx 1.9.5 and in version 1.6.5.
public class CursorTest extends ApplicationAdapter {
SpriteBatch batch;
Texture img;
@Override
public void create () {
batch = new SpriteBatch();
img = new Texture("badlogic.jpg");
Gdx.graphics.setSystemCursor(Cursor.SystemCursor.VerticalResize);
}
@Override
public void render () {
Gdx.gl.glClearColor(1, 0, 0, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
batch.begin();
batch.draw(img, 0, 0);
batch.end();
}
@Override
public void dispose () {
batch.dispose();
img.dispose();
}
}
The release notes of version 1.8.0 contain this:
Maybe It has something to do with the backend. if so, how do I know what backend libgdx is using?