From a38d7507c1d70024085e91434632c47e4ebb5eeb Mon Sep 17 00:00:00 2001 From: Brendan Robert Date: Thu, 13 Aug 2015 01:13:52 -0500 Subject: [PATCH] Changed joystick setting defaults to turn in on by default, which will probably save a lot of folks some confusion. --- src/main/java/jace/apple2e/Apple2e.java | 2 +- src/main/java/jace/hardware/Joystick.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/jace/apple2e/Apple2e.java b/src/main/java/jace/apple2e/Apple2e.java index 6e73415..48c6aa4 100644 --- a/src/main/java/jace/apple2e/Apple2e.java +++ b/src/main/java/jace/apple2e/Apple2e.java @@ -87,7 +87,7 @@ public class Apple2e extends Computer { @ConfigurableField(name = "Aux Ram", shortName = "ram", description = "Aux ram card") public ClassSelection ramCard = new ClassSelection(RAM128k.class, CardExt80Col.class); @ConfigurableField(name = "Joystick 1 Enabled", shortName = "joy1", description = "If unchecked, then there is no joystick support.", enablesDevice = true) - public boolean joy1enabled = false; + public boolean joy1enabled = true; @ConfigurableField(name = "Joystick 2 Enabled", shortName = "joy2", description = "If unchecked, then there is no joystick support.", enablesDevice = true) public boolean joy2enabled = false; @ConfigurableField(name = "No-Slot Clock Enabled", shortName = "clock", description = "If checked, no-slot clock will be enabled", enablesDevice = true) diff --git a/src/main/java/jace/hardware/Joystick.java b/src/main/java/jace/hardware/Joystick.java index 35ba81e..7719dfb 100644 --- a/src/main/java/jace/hardware/Joystick.java +++ b/src/main/java/jace/hardware/Joystick.java @@ -47,11 +47,11 @@ import java.util.logging.Logger; @Stateful public class Joystick extends Device { @ConfigurableField(name = "Center Mouse", shortName = "center", description = "Moves mouse back to the center of the screen, can get annoying.") - public boolean centerMouse; + public boolean centerMouse = false; @ConfigurableField(name = "Use keyboard", shortName = "useKeys", description = "Arrow keys will control joystick instead of the mouse.") - public boolean useKeyboard; + public boolean useKeyboard = true; @ConfigurableField(name = "Hog keypresses", shortName = "hog", description = "Key presses will not be sent to emulator.") - public boolean hogKeyboard; + public boolean hogKeyboard = false; public int port; @Stateful public int x = 0;