TechReborn/src/main/java/techreborn/client/keybindings/KeyInputEventHandler.java
2015-07-02 19:51:24 +01:00

25 lines
516 B
Java

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