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) static booleanstatic booleanstatic booleanisKeyDownRaw(int key) static booleanisKeyPressed(int key) static booleanisKeyPressed(String keyName) static booleanisKeyPressed(KeybindId keybindId) static voidpoll()static voidsetDoLuaKeyPressed(boolean doIt) static voidupdate()static booleanwasKeyDown(int key) static booleanwasKeyDown(String keyName) static booleanwasKeyDown(KeybindId keybindId) static booleanwasKeyDownRaw(int key) static intwhichKeyDown(String keyName) static intwhichKeyDown(KeybindId keybindId) 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) -
isKeyPressed
-
whichKeyPressed
-
isKeyDown
public static boolean isKeyDown(int key) -
isKeyDown
-
whichKeyDown
-
whichKeyDownIgnoreMouse
-
wasKeyDown
public static boolean wasKeyDown(int key) -
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() -
isKeyDown
-
isKeyPressed
-
wasKeyDown
-
whichKeyDown
-