Headless mode disables joystick to avoid init issues.

This commit is contained in:
Brendan Robert 2016-02-14 23:04:54 -06:00
parent 5542bb3425
commit 7edbbd9c8d

View File

@ -28,6 +28,7 @@ import jace.core.Motherboard;
import jace.core.RAM; import jace.core.RAM;
import jace.core.RAMEvent; import jace.core.RAMEvent;
import jace.core.RAMListener; import jace.core.RAMListener;
import jace.core.Utility;
import jace.state.Stateful; import jace.state.Stateful;
import jace.core.Video; import jace.core.Video;
import jace.hardware.CardDiskII; import jace.hardware.CardDiskII;
@ -193,6 +194,12 @@ public class Apple2e extends Computer {
@Override @Override
public final void reconfigure() { public final void reconfigure() {
boolean restart = pause(); boolean restart = pause();
if (Utility.isHeadlessMode()) {
joy1enabled = false;
joy2enabled = false;
}
super.reconfigure(); super.reconfigure();