2015-03-29 15:29:05 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2015-05-22 17:48:50 +02:00
|
|
|
public static boolean isAltPressed(){
|
|
|
|
return Keyboard.isKeyDown(Keyboard.KEY_LMENU) || Keyboard.isKeyDown(Keyboard.KEY_RMENU);
|
|
|
|
}
|
|
|
|
|
2015-03-29 15:29:05 +02:00
|
|
|
}
|