TechReborn/src/main/java/techreborn/client/keybindings/KeyInputEventHandler.java
2016-10-08 20:46:16 +01:00

22 lines
528 B
Java

package techreborn.client.keybindings;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.InputEvent;
import techreborn.Core;
import techreborn.lib.Key;
public class KeyInputEventHandler {
private static Key getPressedKeybinding() {
if (KeyBindings.config.isPressed()) {
return Key.CONFIG;
}
return Key.UNKNOWN;
}
@SubscribeEvent
public void handleKeyInputEvent(InputEvent.KeyInputEvent event) {
Core.logHelper.info(getPressedKeybinding());
}
}