public final class Keyboard extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areAllKeysPressed(Collection<Key> keys) |
static boolean |
areAllKeysPressed(Key... keys) |
static boolean |
areAllKeysReleased(Collection<Key> keys) |
static boolean |
areAllKeysReleased(Key... keys) |
static KeyboardState |
current() |
static IInputAware |
getInputAware() |
static boolean |
isAtLeastOneKeyJustPressed(Collection<Key> keys) |
static boolean |
isAtLeastOneKeyJustPressed(Key... keys) |
static boolean |
isAtLeastOneKeyJustReleased(Collection<Key> keys) |
static boolean |
isAtLeastOneKeyJustReleased(Key... keys) |
static boolean |
isAtLeastOneKeyPressed(Collection<Key> keys) |
static boolean |
isAtLeastOneKeyPressed(Key... keys) |
static boolean |
isKeyJustPressed(Key key) |
static boolean |
isKeyJustReleased(Key key) |
static boolean |
isKeyPressed(Key key) |
static boolean |
isKeyReleased(Key key) |
static KeyboardState |
previous() |
static void |
setInputAware(IInputAware inputAware) |
static void |
step() |
public static IInputAware getInputAware()
public static void setInputAware(IInputAware inputAware)
public static void step()
public static KeyboardState current()
public static KeyboardState previous()
public static boolean isKeyPressed(Key key)
public static boolean isKeyJustPressed(Key key)
public static boolean isKeyReleased(Key key)
public static boolean isKeyJustReleased(Key key)
public static boolean areAllKeysPressed(Key... keys)
public static boolean areAllKeysPressed(Collection<Key> keys)
public static boolean areAllKeysReleased(Key... keys)
public static boolean areAllKeysReleased(Collection<Key> keys)
public static boolean isAtLeastOneKeyPressed(Key... keys)
public static boolean isAtLeastOneKeyPressed(Collection<Key> keys)
public static boolean isAtLeastOneKeyJustPressed(Key... keys)
public static boolean isAtLeastOneKeyJustPressed(Collection<Key> keys)
public static boolean isAtLeastOneKeyJustReleased(Key... keys)
public static boolean isAtLeastOneKeyJustReleased(Collection<Key> keys)
Copyright © 2016. All rights reserved.