|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejos.devices.KeyEvent
public class KeyEvent
Field Summary | |
---|---|
static int |
ALT_DOWN_MASK
|
static int |
ALT_GRAPH_DOWN_MASK
|
static int |
ALT_GRAPH_MASK
|
static int |
ALT_MASK
|
static int |
CTRL_DOWN_MASK
|
static int |
CTRL_MASK
|
static short |
KEY_PRESSED
|
static short |
KEY_RELEASED
|
static short |
KEY_TYPED
|
static int |
META_DOWN_MASK
|
static int |
META_MASK
|
static int |
SHIFT_DOWN_MASK
|
static int |
SHIFT_MASK
|
static int |
VK_DOWN
Keycode constant for the down arrow key |
static int |
VK_LEFT
Keycode constant for the left arrow key |
static int |
VK_RIGHT
Keycode constant for the right arrow key |
static int |
VK_UP
Keycode constant for the up arrow key |
Constructor Summary | |
---|---|
KeyEvent(Object source,
short id,
int when,
int modifiers,
int keyCode,
char keyChar)
|
Method Summary | |
---|---|
void |
consume()
|
int |
getID()
|
char |
getKeyChar()
|
int |
getKeyCode()
Will actually only return key codes that don't have ASCII/Unicode equivalents, such as arrow keys (e.g. |
int |
getKeyLocation()
Not Implemented |
int |
getModifiers()
|
Object |
getSource()
|
int |
getWhen()
|
boolean |
isAltDown()
|
boolean |
isAltGraphDown()
|
boolean |
isConsumed()
|
boolean |
isControlDown()
|
boolean |
isMetaDown()
|
boolean |
isShiftDown()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Field Detail |
---|
public static final int SHIFT_MASK
public static final int CTRL_MASK
public static final int META_MASK
public static final int ALT_MASK
public static final int ALT_GRAPH_MASK
public static final int SHIFT_DOWN_MASK
public static final int CTRL_DOWN_MASK
public static final int META_DOWN_MASK
public static final int ALT_DOWN_MASK
public static final int ALT_GRAPH_DOWN_MASK
public static final int VK_DOWN
public static final int VK_RIGHT
public static final int VK_UP
public static final int VK_LEFT
public static short KEY_TYPED
public static short KEY_PRESSED
public static short KEY_RELEASED
Constructor Detail |
---|
public KeyEvent(Object source, short id, int when, int modifiers, int keyCode, char keyChar)
Method Detail |
---|
public char getKeyChar()
public int getKeyCode()
public int getKeyLocation()
public int getID()
public boolean isShiftDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isAltDown()
public boolean isAltGraphDown()
public int getWhen()
public int getModifiers()
public void consume()
public boolean isConsumed()
public Object getSource()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |