Class GameKeyboard
java.lang.Object
zombie.input.GameKeyboard
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voideatKeyPress(int key) static org.lwjglx.input.KeyEventQueuestatic org.lwjglx.input.KeyEventQueuestatic booleanisKeyDown(int key) Is the key down.static booleanstatic booleanisKeyDownRaw(int key) static booleanisKeyPressed(int key) Has the key been pressed.static booleanisKeyPressed(String keyName) static voidpoll()static voidsetDoLuaKeyPressed(boolean doIt) static voidupdate()static booleanwasKeyDown(int key) Was they key down last frame.static booleanwasKeyDown(String keyName) static booleanwasKeyDownRaw(int key) static intwhichKeyDown(String keyName) static intwhichKeyDownIgnoreMouse(String keyName) static intwhichKeyPressed(String keyName) static intwhichKeyWasDown(String keyName)
-
Field Details
-
noEventsWhileLoading
public static boolean noEventsWhileLoading -
doLuaKeyPressed
public static boolean doLuaKeyPressed
-
-
Constructor Details
-
GameKeyboard
public GameKeyboard()
-
-
Method Details
-
update
public static void update() -
poll
public static void poll() -
isKeyDownRaw
public static boolean isKeyDownRaw(int key) -
wasKeyDownRaw
public static boolean wasKeyDownRaw(int key) -
isKeyPressed
public static boolean isKeyPressed(int key) Has the key been pressed. Not continuous. That is, is the key down now, but was not down before. -
isKeyPressed
-
whichKeyPressed
-
isKeyDown
public static boolean isKeyDown(int key) Is the key down. Continuous. -
isKeyDown
-
whichKeyDown
-
whichKeyDownIgnoreMouse
-
wasKeyDown
public static boolean wasKeyDown(int key) Was they key down last frame. Continuous. -
wasKeyDown
-
whichKeyWasDown
-
eatKeyPress
public static void eatKeyPress(int key) -
setDoLuaKeyPressed
public static void setDoLuaKeyPressed(boolean doIt) -
getEventQueue
public static org.lwjglx.input.KeyEventQueue getEventQueue() -
getEventQueuePolling
public static org.lwjglx.input.KeyEventQueue getEventQueuePolling()
-