|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.util.Interval
com.threerings.util.KeyboardManager.KeyInfo
protected class KeyboardManager.KeyInfo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.samskivert.util.Interval |
|---|
Interval.IntervalTask, Interval.RunBuddy |
| Field Summary | |
|---|---|
protected char |
_keyChar
The character associated with this key info object, if any. |
protected int |
_keyCode
The key code associated with this key info object, if any. |
protected String |
_keyText
A text representation of this key. |
protected long |
_lastPress
The last time a key pressed event was received for this key. |
protected long |
_lastRelease
The last time a key released event was received for this key. |
protected String |
_pressCommand
The press action command associated with this key. |
protected long |
_pressDelay
The milliseconds to sleep between sending repeat key commands. |
protected String |
_releaseCommand
The release action command associated with this key. |
protected long |
_repeatDelay
The delay in milliseconds before auto-repeating the key press. |
protected boolean |
_scheduled
True if we are a scheduled interval. |
| Fields inherited from class com.samskivert.util.Interval |
|---|
_runQueue, _task, _timer |
| Constructor Summary | |
|---|---|
KeyboardManager.KeyInfo(char keyChar)
Constructs a key info object for the given character. |
|
KeyboardManager.KeyInfo(int keyCode)
Constructs a key info object for the given key code. |
|
| Method Summary | |
|---|---|
void |
expired()
|
boolean |
isCharacterBased()
Returns true if we're based off a character & key typed events rather than a keycode and key pressed/released events. |
protected void |
postPress(long timestamp)
Posts the press command for this key and notifies all key observers of the key press. |
protected void |
postRelease(long timestamp)
Posts the release command for this key and notifies all key observers of the key release. |
void |
release(long timestamp)
Releases the key if pressed and cancels any active key repeat interval. |
void |
setPressTime(long time)
Sets the last time the key was pressed. |
void |
setReleaseTime(long time)
Sets the last time the key was released. |
String |
toString()
|
| Methods inherited from class com.samskivert.util.Interval |
|---|
cancel, create, create, createTimer, noteRejected, resetTimer, safelyExpire, schedule, schedule, schedule, schedule, schedule, scheduleTask, setRunQueue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean _scheduled
protected long _lastRelease
protected long _lastPress
protected String _pressCommand
protected String _releaseCommand
protected String _keyText
protected int _keyCode
protected char _keyChar
protected long _pressDelay
protected long _repeatDelay
| Constructor Detail |
|---|
public KeyboardManager.KeyInfo(int keyCode)
public KeyboardManager.KeyInfo(char keyChar)
| Method Detail |
|---|
public boolean isCharacterBased()
public void setPressTime(long time)
public void setReleaseTime(long time)
public void release(long timestamp)
public void expired()
expired in class Intervalprotected void postPress(long timestamp)
protected void postRelease(long timestamp)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||