//#if MC<=10710
//$$ package com.replaymod.recording.mixin;
//$$
//$$ import de.johni0702.minecraft.gui.container.VanillaGuiScreen;
//$$ import net.minecraft.client.gui.GuiScreen;
//$$ import org.lwjgl.input.Keyboard;
//$$ import org.lwjgl.input.Mouse;
//$$ import org.spongepowered.asm.mixin.Mixin;
//$$ import org.spongepowered.asm.mixin.Shadow;
//$$ import org.spongepowered.asm.mixin.injection.At;
//$$ import org.spongepowered.asm.mixin.injection.Inject;
//$$ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
//$$
//$$ import static com.replaymod.core.versions.MCVer.*;
//$$
//$$ @Mixin(GuiScreen.class)
//$$ public abstract class MixinGuiScreen {
//$$
//$$     @Inject(method = "handleInput", at = @At("HEAD"), cancellable = true)
//$$     private void handleJGuiInput(CallbackInfo ci) {
//$$         ci.cancel();
//$$         if (Mouse.isCreated()) {
//$$             while (Mouse.next()) {
//$$                 if (FORGE_BUS.post(new VanillaGuiScreen.MouseInputEvent())) {
//$$                     continue;
//$$                 }
//$$                 handleMouseInput();
//$$             }
//$$         }
//$$
//$$         if (Keyboard.isCreated()) {
//$$             while (Keyboard.next()) {
//$$                 if (FORGE_BUS.post(new VanillaGuiScreen.KeyboardInputEvent())) {
//$$                     continue;
//$$                 }
//$$                 handleKeyboardInput();
//$$             }
//$$         }
//$$     }
//$$
//$$     @Shadow public abstract void handleMouseInput();
//$$
//$$     @Shadow public abstract void handleKeyboardInput();
//$$ }
//#endif
