mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
fixing list UI's colours; buildingmaker palette wip
This commit is contained in:
@@ -329,19 +329,32 @@ public class AppLoader implements ApplicationListener {
|
||||
try {
|
||||
gamepad = new XinputControllerAdapter(XInputDevice.getDeviceFor(0));
|
||||
}
|
||||
catch (Throwable e) { }
|
||||
catch (Throwable e) {
|
||||
gamepad = null;
|
||||
}
|
||||
|
||||
// nullify if not actually connected
|
||||
if (!((XinputControllerAdapter) gamepad).getC().isConnected()) {
|
||||
gamepad = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (gamepad == null) {
|
||||
try {
|
||||
gamepad = new GdxControllerAdapter(Controllers.getControllers().get(0));
|
||||
}
|
||||
catch (Throwable e) { }
|
||||
catch (Throwable e) {
|
||||
gamepad = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (gamepad != null) {
|
||||
environment = RunningEnvironment.CONSOLE;
|
||||
}
|
||||
else {
|
||||
environment = RunningEnvironment.PC;
|
||||
}
|
||||
|
||||
// make loading list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user