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 KeyEventQueuestatic KeyEventQueuestatic booleanisKeyDown(int key) Is the key down.static booleanstatic booleanisKeyDownRaw(int int0) static booleanisKeyPressed(int key) Has the key been pressed.static booleanisKeyPressed(String string) static voidpoll()static voidsetDoLuaKeyPressed(boolean doIt) static voidupdate()static booleanwasKeyDown(int key) Was they key down last frame.static booleanwasKeyDown(String string) static booleanwasKeyDownRaw(int int0) static intwhichKeyDown(String string) static intwhichKeyPressed(String string) static intwhichKeyWasDown(String string)
-
Field Details
-
bNoEventsWhileLoading
public static boolean bNoEventsWhileLoading -
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 int0) -
wasKeyDownRaw
public static boolean wasKeyDownRaw(int int0) -
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
-
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
-
getEventQueuePolling
-