From 7edbbd9c8dab0e0c78f4f1c5daba2c9a202a09ce Mon Sep 17 00:00:00 2001 From: Brendan Robert Date: Sun, 14 Feb 2016 23:04:54 -0600 Subject: [PATCH] Headless mode disables joystick to avoid init issues. --- src/main/java/jace/apple2e/Apple2e.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/jace/apple2e/Apple2e.java b/src/main/java/jace/apple2e/Apple2e.java index 78dcd7f..3164b7b 100644 --- a/src/main/java/jace/apple2e/Apple2e.java +++ b/src/main/java/jace/apple2e/Apple2e.java @@ -28,6 +28,7 @@ import jace.core.Motherboard; import jace.core.RAM; import jace.core.RAMEvent; import jace.core.RAMListener; +import jace.core.Utility; import jace.state.Stateful; import jace.core.Video; import jace.hardware.CardDiskII; @@ -193,6 +194,12 @@ public class Apple2e extends Computer { @Override public final void reconfigure() { boolean restart = pause(); + + if (Utility.isHeadlessMode()) { + joy1enabled = false; + joy2enabled = false; + + } super.reconfigure();