Package zombie.input
Class GameKeyboard
java.lang.Object
zombie.input.GameKeyboard
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
static boolean
-
Constructor Summary
-
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
isKeyPressed
(int key) Has the key been pressed.static void
poll()
static void
setDoLuaKeyPressed
(boolean doIt) static void
update()
static boolean
wasKeyDown
(int key) Was they key down last frame.
-
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. -
isKeyDown
public static boolean isKeyDown(int key) Is the key down. Continuous. -
wasKeyDown
public static boolean wasKeyDown(int key) Was they key down last frame. Continuous. -
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()
-