use of com.neuronrobotics.sdk.addons.gamepad.JogTrainerWidget in project BowlerStudio by CommonWealthRobotics.
the class CalibrateGameControl method initializeUI.
@Override
public void initializeUI(BowlerAbstractDevice pm) {
BowlerJInputDevice dev = (BowlerJInputDevice) pm;
File fxmlFIle;
try {
fxmlFIle = AssetFactory.loadFile("layout/jogTrainerWidget.fxml");
URL fileURL = fxmlFIle.toURI().toURL();
FXMLLoader loader = new FXMLLoader(fileURL);
loader.setLocation(fileURL);
Parent root;
w = new JogTrainerWidget(dev);
loader.setController(w);
// This is needed when loading on MAC
loader.setClassLoader(JogTrainerWidget.class.getClassLoader());
root = loader.load();
setContent(root);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
setText("Calibrate Game Control");
onTabReOpening();
}
use of com.neuronrobotics.sdk.addons.gamepad.JogTrainerWidget in project BowlerStudio by CommonWealthRobotics.
the class JogWidget method runControllerMap.
private void runControllerMap() {
Stage s = new Stage();
new Thread() {
public void run() {
JogTrainerWidget controller = new JogTrainerWidget(gameController);
try {
controller.start(s);
} catch (Exception e) {
e.printStackTrace();
}
}
}.start();
}
Aggregations