|
|
|
@@ -31,40 +31,40 @@ import static org.lwjgl.glfw.GLFW.GLFW_GAMEPAD_AXIS_LEFT_Y;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class MidnightControlsConfig extends MidnightConfig {
|
|
|
|
public class MidnightControlsConfig extends MidnightConfig {
|
|
|
|
// General
|
|
|
|
// General
|
|
|
|
@Entry public static ControlsMode controlsMode = ControlsMode.DEFAULT;
|
|
|
|
@Entry(name = "midnightcontrols.menu.controls_mode") public static ControlsMode controlsMode = ControlsMode.DEFAULT;
|
|
|
|
@Entry public static boolean autoSwitchMode = true;
|
|
|
|
@Entry(name = "midnightcontrols.menu.auto_switch_mode") public static boolean autoSwitchMode = true;
|
|
|
|
@Entry public static boolean debug = false;
|
|
|
|
@Entry(name = "Debug") public static boolean debug = false;
|
|
|
|
// HUD
|
|
|
|
// HUD
|
|
|
|
@Entry public static boolean hudEnable = true;
|
|
|
|
@Entry(name = "midnightcontrols.menu.hud_enable") public static boolean hudEnable = true;
|
|
|
|
@Entry public static HudSide hudSide = HudSide.LEFT;
|
|
|
|
@Entry(name = "midnightcontrols.menu.hud_side") public static HudSide hudSide = HudSide.LEFT;
|
|
|
|
// Gameplay
|
|
|
|
// Gameplay
|
|
|
|
@Entry public static boolean analogMovement = true;
|
|
|
|
@Entry(name = "midnightcontrols.menu.analog_movement") public static boolean analogMovement = true;
|
|
|
|
@Entry public static boolean doubleTapToSprint = true;
|
|
|
|
@Entry(name = "midnightcontrols.menu.double_tap_to_sprint") public static boolean doubleTapToSprint = true;
|
|
|
|
@Entry public static boolean fastBlockPlacing = false; // Disabled by default as this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry(name = "midnightcontrols.menu.fast_block_placing") public static boolean fastBlockPlacing = false; // Disabled by default as this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry public static boolean flyDrifting = true; // Enabled by default as disabling this behaviour can be considered cheating on multiplayer servers. It can also conflict with some other mods.
|
|
|
|
@Entry(name = "midnightcontrols.menu.fly_drifting") public static boolean flyDrifting = true; // Enabled by default as disabling this behaviour can be considered cheating on multiplayer servers. It can also conflict with some other mods.
|
|
|
|
@Entry public static boolean verticalFlyDrifting = true; // Enabled by default as disabling this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry(name = "midnightcontrols.menu.fly_drifting_vertical") public static boolean verticalFlyDrifting = true; // Enabled by default as disabling this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry public static boolean horizontalReacharound = false; // Disabled by default as this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry(name = "midnightcontrols.menu.reacharound.horizontal") public static boolean horizontalReacharound = false; // Disabled by default as this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry public static boolean verticalReacharound = false; // Disabled by default as this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry(name = "midnightcontrols.menu.reacharound.vertical") public static boolean verticalReacharound = false; // Disabled by default as this behaviour can be considered cheating on multiplayer servers.
|
|
|
|
@Entry public static boolean shouldRenderReacharoundOutline = true;
|
|
|
|
@Entry(name = "Reacharound Outline") public static boolean shouldRenderReacharoundOutline = true;
|
|
|
|
@Entry public static int[] reacharoundOutlineColor = new int[]{255, 255, 255, 102};
|
|
|
|
@Entry(name = "Reacharound Outline Color") public static int[] reacharoundOutlineColor = new int[]{255, 255, 255, 102};
|
|
|
|
@Entry public static double rightDeadZone = 0.25;
|
|
|
|
@Entry(name = "midnightcontrols.menu.right_dead_zone") public static double rightDeadZone = 0.25;
|
|
|
|
@Entry public static double leftDeadZone = 0.25;
|
|
|
|
@Entry(name = "midnightcontrols.menu.left_dead_zone") public static double leftDeadZone = 0.25;
|
|
|
|
@Entry public static boolean invertRightYAxis = false;
|
|
|
|
@Entry(name = "midnightcontrols.menu.invert_right_y_axis") public static boolean invertRightYAxis = false;
|
|
|
|
@Entry public static boolean invertRightXAxis = false;
|
|
|
|
@Entry(name = "midnightcontrols.menu.invert_right_x_axis") public static boolean invertRightXAxis = false;
|
|
|
|
@Entry public static double DEFAULT_MAX_VALUE = 1;
|
|
|
|
public static double DEFAULT_MAX_VALUE = 1;
|
|
|
|
@Entry public static double rotationSpeed = 40.0;
|
|
|
|
@Entry(name = "midnightcontrols.menu.right_dead_zone") public static double rotationSpeed = 40.0;
|
|
|
|
@Entry public static double mouseSpeed = 25.0;
|
|
|
|
@Entry(name = "midnightcontrols.menu.mouse_speed") public static double mouseSpeed = 25.0;
|
|
|
|
@Entry public static boolean unfocusedInput = false;
|
|
|
|
@Entry(name = "midnightcontrols.menu.unfocused_input") public static boolean unfocusedInput = false;
|
|
|
|
@Entry public static boolean virtualMouse = false;
|
|
|
|
@Entry(name = "midnightcontrols.menu.virtual_mouse") public static boolean virtualMouse = false;
|
|
|
|
@Entry public static VirtualMouseSkin virtualMouseSkin = VirtualMouseSkin.DEFAULT_LIGHT;
|
|
|
|
@Entry(name = "midnightcontrols.menu.virtual_mouse.skin") public static VirtualMouseSkin virtualMouseSkin = VirtualMouseSkin.DEFAULT_LIGHT;
|
|
|
|
@Entry public static Object controllerID = 0;
|
|
|
|
@Entry(name = "Controller ID") public static Object controllerID = 0;
|
|
|
|
@Entry public static Object secondControllerID = -1;
|
|
|
|
@Entry(name = "2nd Controller ID") public static Object secondControllerID = -1;
|
|
|
|
@Entry public static ControllerType controllerType = ControllerType.DEFAULT;
|
|
|
|
@Entry(name = "midnightcontrols.menu.controller_type") public static ControllerType controllerType = ControllerType.DEFAULT;
|
|
|
|
@Entry public static List<String> mouseScreens = List.of("me.jellysquid.mods.sodium.client.gui","net.coderbot.iris.gui","net.minecraft.client.gui.screen.advancement", "net.minecraft.client.gui.screen.pack.PackScreen", "net.minecraft.class_5375", "net.minecraft.class_457", "net.minecraft.class_408", "me.flashyreese.mods.reeses_sodium_options.client.gui");
|
|
|
|
@Entry(name = "Mouse screens") public static List<String> mouseScreens = List.of("me.jellysquid.mods.sodium.client.gui","net.coderbot.iris.gui","net.minecraft.client.gui.screen.advancement", "net.minecraft.client.gui.screen.pack.PackScreen", "net.minecraft.class_5375", "net.minecraft.class_457", "net.minecraft.class_408", "me.flashyreese.mods.reeses_sodium_options.client.gui");
|
|
|
|
@Entry public static Map<String, String> BINDINGS = Map.of();
|
|
|
|
@Entry(name = "Keybindings") public static Map<String, String> BINDINGS = Map.of();
|
|
|
|
|
|
|
|
|
|
|
|
private static final Pattern BUTTON_BINDING_PATTERN = Pattern.compile("(-?\\d+)\\+?");
|
|
|
|
private static final Pattern BUTTON_BINDING_PATTERN = Pattern.compile("(-?\\d+)\\+?");
|
|
|
|
@Entry public static double[] maxAnalogValues = new double[]{DEFAULT_MAX_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MAX_VALUE};
|
|
|
|
@Entry(name = "Max analog values") public static double[] maxAnalogValues = new double[]{DEFAULT_MAX_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MAX_VALUE};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Loads the configuration
|
|
|
|
* Loads the configuration
|
|
|
|
|