ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/util/KeyUtil.java

15 lines
406 B
Java

package ellpeck.actuallyadditions.util;
import org.lwjgl.input.Keyboard;
public class KeyUtil{
public static boolean isShiftPressed(){
return Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
}
public static boolean isControlPressed(){
return Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) || Keyboard.isKeyDown(Keyboard.KEY_RCONTROL);
}
}