Allowed Keyboard Inputs in GuiMouseInput

This commit is contained in:
CrushedPixel
2015-04-30 17:45:18 +02:00
parent 263ce4df8b
commit bc9fbfa786
3 changed files with 43 additions and 16 deletions

View File

@@ -1,7 +1,19 @@
package eu.crushedpixel.replaymod.gui;
import eu.crushedpixel.replaymod.ReplayMod;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.settings.KeyBinding;
import java.io.IOException;
public class GuiMouseInput extends GuiScreen {
@Override
protected void keyTyped(char typedChar, int keyCode) throws IOException {
for(KeyBinding kb : Minecraft.getMinecraft().gameSettings.keyBindings)
ReplayMod.keyInputHandler.handleCustomKeybindings(kb, false, keyCode);
super.keyTyped(typedChar, keyCode);
}
}