mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-09-29 20:31:05 +02:00
16 lines
406 B
Java
16 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);
|
||
|
}
|
||
|
|
||
|
}
|