|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KeypadListener
This interface provides constant values for the modifier keycodes for use by
extending interfaces (such as KeyListener and
TrackwheelListener) and implementing classes.
Example
public boolean navigationClick(int status, int time)
{
if ((status & KeypadListener.STATUS_TRACKWHEEL) == KeypadListener.STATUS_TRACKWHEEL)
{
//Input came from the trackwheel
}
else if ((status & KeypadListener.STATUS_FOUR_WAY) == KeypadListener.STATUS_FOUR_WAY)
{
//Input came from a four way navigation input device
}
return super.navigationClick(status, time);
}
Keypad| Field Summary | ||
|---|---|---|
static int |
STATUS_ALT
Status flag indicating the ALT key is down. |
|
static int |
STATUS_ALT_LOCK
Status flag indicating the keyboard is in alt-lock mode. |
|
static int |
STATUS_CAPS_LOCK
Status flag indicating the keyboard is in caps-lock mode. |
|
static int |
STATUS_FOUR_WAY
Status flag indicating the event was produced by a four way input device. |
|
static int |
STATUS_KEY_HELD_WHILE_ROLLING
Status flag indicating a key is being held down while the trackwheel is being rolled. |
|
static int |
STATUS_NOT_FROM_KEYPAD
Status flag indicating that the inputted value is a char, and has no key association. |
|
static int |
STATUS_SHIFT
Status flag indicating one of the SHIFT keys are down. |
|
static int |
STATUS_SHIFT_LEFT
Status flag indicating the left shift key is being held down. |
|
static int |
STATUS_SHIFT_RIGHT
Status flag indicating the right shift key is being held down. |
|
static int |
STATUS_TRACKWHEEL
Status flag indicating the event was produced by a trackwheel. |
|
| Field Detail |
|---|
static final int STATUS_ALT
static final int STATUS_NOT_FROM_KEYPAD
static final int STATUS_SHIFT
static final int STATUS_CAPS_LOCK
static final int STATUS_KEY_HELD_WHILE_ROLLING
static final int STATUS_ALT_LOCK
static final int STATUS_SHIFT_LEFT
static final int STATUS_SHIFT_RIGHT
static final int STATUS_TRACKWHEEL
static final int STATUS_FOUR_WAY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal