Package gaiasky.input

Class KeyRegister

java.lang.Object
gaiasky.input.KeyRegister

public class KeyRegister extends Object
Small utility class that registers and keeps track of when keys are pressed.
  • Constructor Details

    • KeyRegister

      public KeyRegister()
  • Method Details

    • registerKeyDownTime

      public void registerKeyDownTime(int key, long time)
    • registerKeyDownTime

      public void registerKeyDownTime(Collection<Integer> keys, long time)
    • lastKeyDownTime

      public long lastKeyDownTime(int key)
    • lastKeyDownTime

      public long lastKeyDownTime(Collection<Integer> keys)