com.transmote.nest.events
Class KeyEvent
java.lang.Object
com.transmote.nest.events.Event
com.transmote.nest.events.KeyEvent
public class KeyEvent
- extends Event
KeyEvent instances represent events dispatched by the Nest framework,
which wrap the processing.event.Event instances generated by Processing.
- Author:
- Eric Socolofsky
- See Also:
Event,
EventDispatcher
| Nested classes/interfaces inherited from class com.transmote.nest.events.Event |
Event.PHASE |
|
Constructor Summary |
KeyEvent(processing.event.KeyEvent pEvent)
A Nest key event instance,
generated automatically by the Nest framework. |
|
Method Summary |
char |
getKey()
|
int |
getKeyCode()
|
int |
keyCode()
Deprecated. |
processing.event.KeyEvent |
pKeyEvent()
The processing.event.KeyEvent instance generated by Processing,
if applicable (if this KeyEvent instance was generated
in response to a keyboard action captured and processed by PApplet). |
KEY_PRESSED
public static final int KEY_PRESSED
KEY_RELEASED
public static final int KEY_RELEASED
KEY_TYPED
public static final int KEY_TYPED
KeyEvent
public KeyEvent(processing.event.KeyEvent pEvent)
- A Nest key event instance,
generated automatically by the Nest framework.
- Parameters:
pEvent - This KeyEvent instance will wrap a
processing.event.KeyEvent, passed in from PApplet.
pKeyEvent
public processing.event.KeyEvent pKeyEvent()
- The processing.event.KeyEvent instance generated by Processing,
if applicable (if this KeyEvent instance was generated
in response to a keyboard action captured and processed by PApplet).
getKey
public char getKey()
getKeyCode
public int getKeyCode()
keyCode
@Deprecated
public int keyCode()
- Deprecated.
Processing library Nest by Eric Socolofsky. (C) Eric Socolofsky 2011-2013