| Modifier and Type | Field and Description |
|---|---|
| private IntSet | |
| private int | |
| private MonocleWindow |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv IntSet | Returns: an IntSet containing the key codes of pressed keysReturns the set of pressed key codes |
| private static int | |
| pack-priv int | Returns: a mask of KeyEvent modifiersReturns a mask of modifiers defined in KeyEvent for the keys pressed in this state. |
| pack-priv MonocleWindow | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| public String |
| keysPressed | back to summary |
|---|---|
| private IntSet keysPressed | |
| modifiers | back to summary |
|---|---|
| private int modifiers | |
| window | back to summary |
|---|---|
| private MonocleWindow window | |
| KeyState | back to summary |
|---|---|
| pack-priv KeyState() | |
| clear | back to summary |
|---|---|
| pack-priv void clear() Removes all pressed keys from this state object. | |
| copyTo | back to summary |
|---|---|
| pack-priv void copyTo(KeyState target) Copies the contents of this state object to another.
| |
| getKeysPressed | back to summary |
|---|---|
| pack-priv IntSet getKeysPressed() Returns the set of pressed key codes
| |
| getModifier | back to summary |
|---|---|
| private static int getModifier(int virtualKeyCode) | |
| getModifiers | back to summary |
|---|---|
| pack-priv int getModifiers() Returns a mask of modifiers defined in KeyEvent for the keys pressed in this state.
| |
| getWindow | back to summary |
|---|---|
| pack-priv MonocleWindow getWindow(boolean recalculateCache) Returns the Glass window on which this event state is located . | |
| isControlPressed | back to summary |
|---|---|
| pack-priv boolean isControlPressed() | |
| isShiftPressed | back to summary |
|---|---|
| pack-priv boolean isShiftPressed() | |
| pressKey | back to summary |
|---|---|
| pack-priv void pressKey(int virtualKeyCode) Adds a key to the set of pressed keys. | |
| releaseKey | back to summary |
|---|---|
| pack-priv void releaseKey(int virtualKeyCode) Removes a key from the set of pressed keys. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |