libgdx/gdx-liftoff

compile errors in MVC + Box2D template on latest version 1.11

jeltedeproft opened this issue · 1 comments

Specifically in headlessLauncher

private static HeadlessApplicationConfiguration getDefaultConfiguration() {
	HeadlessApplicationConfiguration configuration = new HeadlessApplicationConfiguration();
	configuration.renderInterval = -1f; // When this value is negative, application is never rendered.
	return configuration;
}

The renderInterval should be replaced by updatesPerSecond, which is an int.

This overriden method no longer exists in parent class

@Override
public boolean povMoved(final Controller controller, final int povIndex, final PovDirection direction) {
	if (isAssignedTo(controller)) {
		if (direction != null) {
			if (direction == PovDirection.center) {
				stop();
			} else {
				movement.x = getX(direction);
				movement.y = getY(direction);
			}
		}
		return true;
	}
	return false;
}

I don't know anything about povMoved() (something to do with gdx-controllers, it seems), but yeah, renderInterval was replaced in 1.9.14 and should be replaced for projects that target use 1.9.14+.