Package gaiasky.input
Class KeyRegister
java.lang.Object
gaiasky.input.KeyRegister
Small utility class that registers and keeps track of when keys are pressed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
lastKeyDownTime
(int key) long
lastKeyDownTime
(Collection<Integer> keys) void
registerKeyDownTime
(int key, long time) void
registerKeyDownTime
(Collection<Integer> keys, long time)
-
Constructor Details
-
KeyRegister
public KeyRegister()
-
-
Method Details
-
registerKeyDownTime
public void registerKeyDownTime(int key, long time) -
registerKeyDownTime
-
lastKeyDownTime
public long lastKeyDownTime(int key) -
lastKeyDownTime
-