synergynetframework.jme.gfx.twod.keyboard
Class MTKeyEvent

java.lang.Object
  extended by synergynetframework.jme.gfx.twod.keyboard.MTKeyEvent

public class MTKeyEvent
extends java.lang.Object

The Class MTKeyEvent.


Field Summary
static int PRESSED
          The Constant PRESSED.
static int RELEASED
          The Constant RELEASED.
 
Constructor Summary
MTKeyEvent(MTKeyboard source, int keyType, int keyCode, java.lang.String keyText, int modifiers)
          Instantiates a new MT key event.
 
Method Summary
 int getKey()
          Gets the key.
 java.lang.String getKeyText()
          Gets the key text.
 int getModifiers()
          Gets the modifiers.
 MTKeyboard getSource()
          Gets the source.
 int getType()
          Gets the type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRESSED

public static final int PRESSED
The Constant PRESSED.

See Also:
Constant Field Values

RELEASED

public static final int RELEASED
The Constant RELEASED.

See Also:
Constant Field Values
Constructor Detail

MTKeyEvent

public MTKeyEvent(MTKeyboard source,
                  int keyType,
                  int keyCode,
                  java.lang.String keyText,
                  int modifiers)
Instantiates a new MT key event.

Parameters:
source - the source
keyType - the key type
keyCode - the key code
keyText - the key text
modifiers - the modifiers
Method Detail

getKey

public int getKey()
Gets the key.

Returns:
the key

getKeyText

public java.lang.String getKeyText()
Gets the key text.

Returns:
the key text

getModifiers

public int getModifiers()
Gets the modifiers.

Returns:
the modifiers

getSource

public MTKeyboard getSource()
Gets the source.

Returns:
the source

getType

public int getType()
Gets the type.

Returns:
the type