Class GameKeyboard

java.lang.Object
zombie.input.GameKeyboard

public final class GameKeyboard extends Object
  • 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

      public static boolean isKeyPressed(String keyName)
    • whichKeyPressed

      public static int whichKeyPressed(String keyName)
    • isKeyDown

      public static boolean isKeyDown(int key)
      Is the key down. Continuous.
    • isKeyDown

      public static boolean isKeyDown(String keyName)
    • whichKeyDown

      public static int whichKeyDown(String keyName)
    • whichKeyDownIgnoreMouse

      public static int whichKeyDownIgnoreMouse(String keyName)
    • wasKeyDown

      public static boolean wasKeyDown(int key)
      Was they key down last frame. Continuous.
    • wasKeyDown

      public static boolean wasKeyDown(String keyName)
    • whichKeyWasDown

      public static int whichKeyWasDown(String keyName)
    • 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()