Update and fix Ok Zoomer compatibility (#68)

This commit is contained in:
Ennui Langeweile
2021-07-14 20:28:02 -03:00
committed by GitHub
parent d08647b3fc
commit 5d5d808403
9 changed files with 30 additions and 26 deletions

View File

@@ -39,11 +39,11 @@ public class LambdaControlsCompat {
* @param mod the mod instance
*/
public static void init(@NotNull LambdaControlsClient mod) {
/*if (FabricLoader.getInstance().isModLoaded("okzoomer")) {
if (FabricLoader.getInstance().isModLoaded("okzoomer")) {
mod.log("Adding okzoomer compatibility...");
HANDLERS.add(new OkZoomerCompat());
}
if (isReiPresent()) {
/*if (isReiPresent()) {
mod.log("Adding REI compatiblity...");
HANDLERS.add(new ReiCompat());
}*/

View File

@@ -10,7 +10,10 @@
package dev.lambdaurora.lambdacontrols.client.compat;
import dev.lambdaurora.lambdacontrols.client.LambdaControlsClient;
import dev.lambdaurora.lambdacontrols.client.controller.ButtonBinding;
import io.github.ennuil.okzoomer.keybinds.ZoomKeybinds;
import org.jetbrains.annotations.NotNull;
import org.lwjgl.glfw.GLFW;
/**
* Represents a compatibility handler for OkZoomer.
@@ -22,7 +25,7 @@ import org.jetbrains.annotations.NotNull;
public class OkZoomerCompat implements CompatHandler {
@Override
public void handle(@NotNull LambdaControlsClient mod) {
/*new ButtonBinding.Builder("zoom")
new ButtonBinding.Builder("zoom")
.buttons(GLFW.GLFW_GAMEPAD_BUTTON_DPAD_UP, GLFW.GLFW_GAMEPAD_BUTTON_X)
.onlyInGame()
.cooldown(true)
@@ -51,6 +54,6 @@ public class OkZoomerCompat implements CompatHandler {
.category(ButtonBinding.MISC_CATEGORY)
.linkKeybind(ZoomKeybinds.resetZoomKey)
.register();
}*/
}
}
}