Package sig.engine
Class Key
- java.lang.Object
-
- sig.engine.Key
-
public class Key extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Key(int keycode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getKeyCode()
static boolean
isHeld(int keycode)
boolean
isKeyHeld()
static boolean
isPressed(int keycode)
static boolean
isReleased(int keycode)
static void
setKeyHeld(int keycode, boolean pressed)
-
-
-
Method Detail
-
getKeyCode
public int getKeyCode()
-
setKeyHeld
public static void setKeyHeld(int keycode, boolean pressed)
-
isHeld
public static boolean isHeld(int keycode)
-
isPressed
public static boolean isPressed(int keycode)
-
isReleased
public static boolean isReleased(int keycode)
-
isKeyHeld
public boolean isKeyHeld()
-
-