Gimbal/src/main/java/net/moonleay/gimble/mixin/KeyMixin.java
moonleay 7383fa09e8
chore: moved group to net.moonleay
fix: fixed camera going meyhem when going 3rd person in NoClip
2024-04-23 18:12:39 +02:00

15 lines
588 B
Java

package net.moonleay.gimble.mixin;
import net.minecraft.client.Keyboard;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Keyboard.class)
public class KeyMixin {
// This Mixin is not registered. This will be used to handle key events with static Buttons.
@Inject(method = "onKey", at = @At("TAIL"))
private void onKey(long window, int key, int scancode, int action, int modifiers, CallbackInfo ci) {
}
}