Ejemplo n.º 1
0
 private void showControlsDialog() {
   final ControlsDialog dialog = new ControlsDialog(this);
   dialog.setVisible(true);
   if (dialog.okClicked()) {
     padController1.setButtons();
     padController2.setButtons();
   }
 }
Ejemplo n.º 2
0
 public GUIImpl(NES nes) {
   this.nes = nes;
   screenScaleFactor = PrefsSingleton.get().getInt("screenScaling", 2);
   padController1 = new ControllerImpl(this, 0);
   padController2 = new ControllerImpl(this, 1);
   nes.setControllers(padController1, padController2);
   padController1.startEventQueue();
   padController2.startEventQueue();
 }