com.transmote.nest.events
Class KeyEvent

java.lang.Object
  extended by com.transmote.nest.events.Event
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class com.transmote.nest.events.Event
Event.PHASE
 
Field Summary
static int KEY_PRESSED
           
static int KEY_RELEASED
           
static int KEY_TYPED
           
 
Fields inherited from class com.transmote.nest.events.Event
ADDED, ADDED_TO_STAGE, DISPATCHER_DISPOSE, ERROR, INIT, REMOVED
 
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).
 
Methods inherited from class com.transmote.nest.events.Event
bubbles, currentTarget, isPropagationStopped, phase, processingEvent, stopPropagation, target, toString, type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_PRESSED

public static final int KEY_PRESSED

KEY_RELEASED

public static final int KEY_RELEASED

KEY_TYPED

public static final int KEY_TYPED
Constructor Detail

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.
Method Detail

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