1
0
forked from Clones/Controlify

controller axes calibration

This commit is contained in:
isXander
2023-02-13 22:10:51 +00:00
parent 4a5cf40459
commit ae0e92a708
7 changed files with 237 additions and 18 deletions

View File

@ -91,12 +91,14 @@ public class ControlifyConfig {
}
}
public void loadOrCreateControllerData(Controller controller) {
public boolean loadOrCreateControllerData(Controller controller) {
var uid = controller.uid();
if (controllerData.has(uid)) {
applyControllerConfig(controller, controllerData.getAsJsonObject(uid));
return true;
} else {
save();
return false;
}
}