Class GameKeyboard
java.lang.Object
zombie.input.GameKeyboard
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
eatKeyPress
(int key) static org.lwjglx.input.KeyEventQueue
static org.lwjglx.input.KeyEventQueue
static boolean
isKeyDown
(int key) Is the key down.static boolean
static boolean
isKeyPressed
(int key) Has the key been pressed.static boolean
isKeyPressed
(String string) static void
poll()
static void
setDoLuaKeyPressed
(boolean doIt) static void
update()
static boolean
wasKeyDown
(int key) Was they key down last frame.static boolean
wasKeyDown
(String string) static int
whichKeyDown
(String string) static int
whichKeyPressed
(String string) static int
whichKeyWasDown
(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() -
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
public static org.lwjglx.input.KeyEventQueue getEventQueue() -
getEventQueuePolling
public static org.lwjglx.input.KeyEventQueue getEventQueuePolling()
-