Skip to content

Commit

Permalink
Merge remote-tracking branch 'BenjaminAmos/libgdx-1.9.14-upgrade' int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
Cervator committed Jan 12, 2022
2 parents 6c6f1b2 + 9b057bf commit ef98800
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 66 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ allprojects {
version = '2.0.1'
ext {
appName = 'DestinationSol'
gdxVersion = '1.9.8'
gdxVersion = '1.9.14'
// The LibGDX controllers library is versioned differently to the main LibGDX versions.
// See https://github.com/libgdx/gdx-controllers/wiki/Compatibility for compatible versions.
gdxControllersVersion = '2.1.0'
roboVMVersion = '2.3.3'
nuiVersion = '3.1.0-SNAPSHOT'
}
Expand Down
7 changes: 0 additions & 7 deletions config/gradle/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ dependencies {
// the FindBugs version is set in the configuration
}

version = '2.0.1'
ext {
appName = 'DestinationSol'
gdxVersion = '1.9.8'
roboVMVersion = '2.3.3'
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

Expand Down
2 changes: 1 addition & 1 deletion desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-controllers-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"

implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
implementation group: 'org.terasology.crashreporter', name: 'cr-destsol', version: '4.0.0'
Expand Down
8 changes: 3 additions & 5 deletions engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,19 @@ buildscript {
classpath 'dom4j:dom4j:1.6.1'

// HACK: Needed for NUI and gestalt entity-component reflections
classpath group: 'org.terasology.nui', name: 'nui', version: '3.1.0-SNAPSHOT'
classpath group: 'org.terasology.nui', name: 'nui', version: nuiVersion
classpath group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1'
classpath group: 'org.terasology.gestalt', name: 'gestalt-entity-system', version: '7.2.0-SNAPSHOT'
}
}

dependencies {

api group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
api group: 'com.google.code.gson', name: 'gson', version: '2.6.2'

api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
api "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion"

api(group: 'org.terasology.gestalt', name: 'gestalt-asset-core', version: '7.2.0-SNAPSHOT')
api(group: 'org.terasology.gestalt', name: 'gestalt-entity-system', version: '7.2.0-SNAPSHOT')
Expand All @@ -62,8 +61,7 @@ dependencies {
testImplementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
testImplementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
testImplementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
testImplementation "com.badlogicgames.gdx:gdx-controllers-desktop:$gdxVersion"
testImplementation "com.badlogicgames.gdx:gdx-controllers-platform:$gdxVersion:natives-desktop"
testImplementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"

// Test lib dependencies
testCompile("org.junit.jupiter:junit-jupiter-api:5.5.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import com.badlogic.gdx.controllers.Controller;
import com.badlogic.gdx.controllers.ControllerListener;
import com.badlogic.gdx.controllers.Controllers;
import com.badlogic.gdx.controllers.PovDirection;
import com.badlogic.gdx.math.Vector3;
import org.destinationsol.GameOptions;
import org.destinationsol.SolApplication;
import org.slf4j.Logger;
Expand Down Expand Up @@ -161,30 +159,6 @@ public boolean axisMoved(Controller controller, int axisIndex, float value) {

return true;
}

@Override
public boolean povMoved(Controller controller, int povIndex, PovDirection value) {
logger.debug("#{}, pov {}: {}", indexOf(controller), povIndex, value);
return false;
}

@Override
public boolean xSliderMoved(Controller controller, int sliderIndex, boolean value) {
logger.debug("#{}, x slider {}: {}", indexOf(controller), sliderIndex, value);
return false;
}

@Override
public boolean ySliderMoved(Controller controller, int sliderIndex, boolean value) {
logger.debug("#{}, y slider {}: {}", indexOf(controller), sliderIndex, value);
return false;
}

@Override
public boolean accelerometerMoved(Controller controller, int accelerometerIndex, Vector3 value) {
// not printing this as we get too many values
return false;
}
});

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import com.badlogic.gdx.controllers.Controller;
import com.badlogic.gdx.controllers.ControllerListener;
import com.badlogic.gdx.controllers.Controllers;
import com.badlogic.gdx.controllers.PovDirection;
import com.badlogic.gdx.math.Vector3;
import org.destinationsol.GameOptions;
import org.destinationsol.SolApplication;
import org.slf4j.Logger;
Expand Down Expand Up @@ -331,26 +329,6 @@ public boolean axisMoved(Controller controller, int axisIndex, float value) {
}
return true;
}

@Override
public boolean povMoved(Controller controller, int povIndex, PovDirection value) {
return false;
}

@Override
public boolean xSliderMoved(Controller controller, int sliderIndex, boolean value) {
return false;
}

@Override
public boolean ySliderMoved(Controller controller, int sliderIndex, boolean value) {
return false;
}

@Override
public boolean accelerometerMoved(Controller controller, int accelerometerIndex, Vector3 value) {
return false;
}
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public boolean mouseMoved(int screenX, int screenY) {
}

@Override
public boolean scrolled(int amount) {
inputManager.scrolled(amount > 0);
public boolean scrolled(float amountX, float amountY) {
inputManager.scrolled(amountY > 0);
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,12 @@ public void glGenRenderbuffers(int n, IntBuffer renderbuffers) {
}

@Override
public String glGetActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
public String glGetActiveAttrib(int program, int index, IntBuffer size, IntBuffer type) {
return "NULL";
}

@Override
public String glGetActiveUniform(int program, int index, IntBuffer size, Buffer type) {
public String glGetActiveUniform(int program, int index, IntBuffer size, IntBuffer type) {
return "NULL";
}

Expand Down

0 comments on commit ef98800

Please sign in to comment.