mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-14 07:35:10 +01:00
👽 Fix compatibility with Ok Zoomer 4.0.0 betas
This commit is contained in:
@@ -42,7 +42,7 @@ dependencies {
|
|||||||
include "com.github.lambdaurora:spruceui:${project.spruceui_version}"
|
include "com.github.lambdaurora:spruceui:${project.spruceui_version}"
|
||||||
|
|
||||||
// Compatibility mods
|
// Compatibility mods
|
||||||
modImplementation "com.github.joaoh1:okzoomer:4.0.0-alpha.4plus1.1.16.1"
|
modImplementation "com.github.joaoh1:okzoomer:e13183c59b"
|
||||||
modImplementation "me.shedaniel:RoughlyEnoughItems:4.5.5"
|
modImplementation "me.shedaniel:RoughlyEnoughItems:4.5.5"
|
||||||
|
|
||||||
api project(":core")
|
api project(":core")
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
package me.lambdaurora.lambdacontrols.client.compat;
|
package me.lambdaurora.lambdacontrols.client.compat;
|
||||||
|
|
||||||
import io.github.joaoh1.okzoomer.client.OkZoomerClientMod;
|
import io.github.joaoh1.okzoomer.client.keybinds.ZoomKeybinds;
|
||||||
import io.github.joaoh1.okzoomer.client.utils.ZoomUtils;
|
|
||||||
import me.lambdaurora.lambdacontrols.client.LambdaControlsClient;
|
import me.lambdaurora.lambdacontrols.client.LambdaControlsClient;
|
||||||
import me.lambdaurora.lambdacontrols.client.controller.ButtonBinding;
|
import me.lambdaurora.lambdacontrols.client.controller.ButtonBinding;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
@@ -25,8 +24,6 @@ import org.lwjgl.glfw.GLFW;
|
|||||||
*/
|
*/
|
||||||
public class OkZoomerCompat implements CompatHandler
|
public class OkZoomerCompat implements CompatHandler
|
||||||
{
|
{
|
||||||
public static final String OKZOOMER_CLASS_PATH = "io.github.joaoh1.okzoomer.client.OkZoomerClientMod";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(@NotNull LambdaControlsClient mod)
|
public void handle(@NotNull LambdaControlsClient mod)
|
||||||
{
|
{
|
||||||
@@ -35,29 +32,29 @@ public class OkZoomerCompat implements CompatHandler
|
|||||||
.onlyInGame()
|
.onlyInGame()
|
||||||
.cooldown(true)
|
.cooldown(true)
|
||||||
.category(ButtonBinding.MISC_CATEGORY)
|
.category(ButtonBinding.MISC_CATEGORY)
|
||||||
.linkKeybind(OkZoomerClientMod.zoomKeyBinding)
|
.linkKeybind(ZoomKeybinds.zoomKey)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
if (ZoomUtils.areExtraKeybindsEnabled()) {
|
if (ZoomKeybinds.areExtraKeybindsEnabled()) {
|
||||||
new ButtonBinding.Builder("zoom.in")
|
new ButtonBinding.Builder("zoom.in")
|
||||||
.buttons(GLFW.GLFW_GAMEPAD_BUTTON_DPAD_UP, ButtonBinding.axisAsButton(GLFW.GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER, true))
|
.buttons(GLFW.GLFW_GAMEPAD_BUTTON_DPAD_UP, ButtonBinding.axisAsButton(GLFW.GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER, true))
|
||||||
.onlyInGame()
|
.onlyInGame()
|
||||||
.cooldown(true)
|
.cooldown(true)
|
||||||
.category(ButtonBinding.MISC_CATEGORY)
|
.category(ButtonBinding.MISC_CATEGORY)
|
||||||
.linkKeybind(OkZoomerClientMod.increaseZoomKeyBinding)
|
.linkKeybind(ZoomKeybinds.increaseZoomKey)
|
||||||
.register();
|
.register();
|
||||||
new ButtonBinding.Builder("zoom.out")
|
new ButtonBinding.Builder("zoom.out")
|
||||||
.buttons(GLFW.GLFW_GAMEPAD_BUTTON_DPAD_UP, ButtonBinding.axisAsButton(GLFW.GLFW_GAMEPAD_AXIS_LEFT_TRIGGER, true))
|
.buttons(GLFW.GLFW_GAMEPAD_BUTTON_DPAD_UP, ButtonBinding.axisAsButton(GLFW.GLFW_GAMEPAD_AXIS_LEFT_TRIGGER, true))
|
||||||
.onlyInGame()
|
.onlyInGame()
|
||||||
.cooldown(true)
|
.cooldown(true)
|
||||||
.category(ButtonBinding.MISC_CATEGORY)
|
.category(ButtonBinding.MISC_CATEGORY)
|
||||||
.linkKeybind(OkZoomerClientMod.decreaseZoomKeyBinding)
|
.linkKeybind(ZoomKeybinds.decreaseZoomKey)
|
||||||
.register();
|
.register();
|
||||||
new ButtonBinding.Builder("zoom.reset")
|
new ButtonBinding.Builder("zoom.reset")
|
||||||
.onlyInGame()
|
.onlyInGame()
|
||||||
.cooldown(true)
|
.cooldown(true)
|
||||||
.category(ButtonBinding.MISC_CATEGORY)
|
.category(ButtonBinding.MISC_CATEGORY)
|
||||||
.linkKeybind(OkZoomerClientMod.resetZoomKeyBinding)
|
.linkKeybind(ZoomKeybinds.resetZoomKey)
|
||||||
.register();
|
.register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user