mirror of
https://github.com/badvision/jace.git
synced 2024-11-28 10:52:33 +00:00
Headless mode disables joystick to avoid init issues.
This commit is contained in:
parent
5542bb3425
commit
7edbbd9c8d
@ -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;
|
||||||
@ -194,6 +195,12 @@ public class Apple2e extends Computer {
|
|||||||
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();
|
||||||
|
|
||||||
RAM128k currentMemory = (RAM128k) getMemory();
|
RAM128k currentMemory = (RAM128k) getMemory();
|
||||||
|
Loading…
Reference in New Issue
Block a user