public class KeyboardState extends Object implements ISerializable
| Constructor and Description |
|---|
KeyboardState(IInputAware input) |
KeyboardState(List<Integer> data) |
KeyboardState(String data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllKeysPressed(Collection<Key> keys) |
boolean |
areAllKeysPressed(Key... keys) |
boolean |
areAllKeysReleased(Collection<Key> keys) |
boolean |
areAllKeysReleased(Key... keys) |
void |
deserialize(List<Integer> data) |
void |
deserialize(String data) |
boolean |
isAtLeastOneKeyPressed(Collection<Key> keys) |
boolean |
isAtLeastOneKeyPressed(Key... keys) |
boolean |
isAtLeastOneKeyReleased(Collection<Key> keys) |
boolean |
isAtLeastOneKeyReleased(Key... keys) |
boolean |
isKeyPressed(Key key) |
boolean |
isKeyReleased(Key key) |
String |
serialize() |
String |
toString() |
public KeyboardState(IInputAware input)
public KeyboardState(String data)
public String serialize()
serialize in interface ISerializablepublic void deserialize(String data)
public boolean isKeyPressed(Key key)
public boolean isKeyReleased(Key key)
public boolean areAllKeysPressed(Key... keys)
public boolean areAllKeysPressed(Collection<Key> keys)
public boolean areAllKeysReleased(Key... keys)
public boolean areAllKeysReleased(Collection<Key> keys)
public boolean isAtLeastOneKeyPressed(Key... keys)
public boolean isAtLeastOneKeyPressed(Collection<Key> keys)
public boolean isAtLeastOneKeyReleased(Key... keys)
public boolean isAtLeastOneKeyReleased(Collection<Key> keys)
Copyright © 2016. All rights reserved.