mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-05 16:39:10 +01: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);
|
||
|
}
|
||
|
|
||
|
}
|