|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.device.ButtonEvent
public class ButtonEvent
Represents a physical key event.
| Field Summary | |
|---|---|
static int |
BUTTON_AUDIO
|
static int |
BUTTON_AUDIO_VOLDOWN_PRESSED_ACTION
|
static int |
BUTTON_AUDIO_VOLUP_PRESSED_ACTION
|
static int |
BUTTON_BUG20_POWER
Power button on BUG 2.0. |
static int |
BUTTON_BUG20_USER
User button on BUG 2.0. |
static int |
BUTTON_CAMERA_SHUTTER
|
static int |
BUTTON_CAMERA_ZOOM_IN
|
static int |
BUTTON_CAMERA_ZOOM_OUT
|
static int |
BUTTON_DOWN
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_HOTKEY_1
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_HOTKEY_2
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_HOTKEY_3
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_HOTKEY_4
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_LEFT
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_RIGHT
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
BUTTON_SELECT
|
static int |
BUTTON_UP
Deprecated. This button only available on BUG 1.3 hardware. |
static int |
KEY_DOWN
|
static int |
KEY_UP
|
| Constructor Summary | |
|---|---|
ButtonEvent(int key)
|
|
ButtonEvent(int rawValue,
float duration)
|
|
ButtonEvent(int rawValue,
float duration,
int button)
|
|
ButtonEvent(int rawValue,
float duration,
int button,
long action)
|
|
ButtonEvent(int rawValue,
float duration,
int button,
long action,
java.lang.String source)
|
|
| Method Summary | |
|---|---|
long |
getAction()
|
int |
getButton()
|
float |
getDuration()
Deprecated. |
int |
getRawValue()
|
java.lang.String |
getSource()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUTTON_HOTKEY_1
public static final int BUTTON_HOTKEY_2
public static final int BUTTON_HOTKEY_3
public static final int BUTTON_HOTKEY_4
public static final int BUTTON_LEFT
public static final int BUTTON_RIGHT
public static final int BUTTON_UP
public static final int BUTTON_DOWN
public static final int BUTTON_CAMERA_ZOOM_IN
public static final int BUTTON_CAMERA_ZOOM_OUT
public static final int BUTTON_CAMERA_SHUTTER
public static final int BUTTON_SELECT
public static final int BUTTON_AUDIO
public static final int BUTTON_AUDIO_VOLUP_PRESSED_ACTION
public static final int BUTTON_AUDIO_VOLDOWN_PRESSED_ACTION
public static final int BUTTON_BUG20_USER
public static final int BUTTON_BUG20_POWER
public static final int KEY_DOWN
public static final int KEY_UP
| Constructor Detail |
|---|
public ButtonEvent(int key)
public ButtonEvent(int rawValue,
float duration)
public ButtonEvent(int rawValue,
float duration,
int button)
public ButtonEvent(int rawValue,
float duration,
int button,
long action)
public ButtonEvent(int rawValue,
float duration,
int button,
long action,
java.lang.String source)
| Method Detail |
|---|
public int getButton()
public float getDuration()
public int getRawValue()
public long getAction()
public java.lang.String getSource()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||