|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IKeys is an interface containing values for special keys and modifiers.
Below is an example of IKeys being used.
public void onEvent(Event event) { if (event.type == KeyEvent.KEY_PRESS) { KeyEvent ke = (KeyEvent)event; if ((ke.modifiers & CONTROL) > 0) ... control key was held down if (ke.key == PAGE_DOWN) ... page down key pressed
Field Summary | |
static int |
ALT
modifier for alt key |
static int |
BACKSPACE
special key |
static int |
COMMAND
special key |
static int |
CONTROL
modifier for control key |
static int |
DELETE
special key |
static int |
DOWN
special key |
static int |
END
special key |
static int |
ENTER
special key |
static int |
ESCAPE
special key |
static int |
HOME
special key |
static int |
INSERT
special key |
static int |
LEFT
special key |
static int |
MENU
special key |
static int |
PAGE_DOWN
special key |
static int |
PAGE_UP
special key |
static int |
RIGHT
special key |
static int |
SHIFT
modifier for shift key |
static int |
TAB
special key |
static int |
UP
special key |
Field Detail |
public static final int ALT
public static final int CONTROL
public static final int SHIFT
public static final int PAGE_UP
public static final int PAGE_DOWN
public static final int HOME
public static final int END
public static final int UP
public static final int DOWN
public static final int LEFT
public static final int RIGHT
public static final int INSERT
public static final int ENTER
public static final int TAB
public static final int BACKSPACE
public static final int ESCAPE
public static final int DELETE
public static final int MENU
public static final int COMMAND
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |