25 lines
516 B
Java
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());
|
|
}
|
|
|
|
}
|