|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.greenthrottle.gcs.api.ControllerEvent
public class ControllerEvent
| Nested Class Summary | |
|---|---|
static class |
ControllerEvent.Action
Indicates type of action. |
static class |
ControllerEvent.AnalogDataType
Indicates type of analog event. |
static class |
ControllerEvent.CommonCodes
Indicates the controller button, stick, or trigger that caused the event |
| Field Summary | |
|---|---|
static |
CREATOR
Used internally as part of IPC |
| Constructor Summary | |
|---|---|
ControllerEvent(java.lang.String controller_id,
ControllerEvent.Action action,
ControllerEvent.CommonCodes commonCode)
|
|
ControllerEvent(java.lang.String controller_id,
ControllerEvent.CommonCodes analogCode,
java.util.HashMap<ControllerEvent.AnalogDataType,java.lang.Double> analogValues,
boolean fillInRelevantMinMaxDefaults)
|
|
| Method Summary | |
|---|---|
ControllerEvent.Action |
action()
Returns Action that triggered this event, such as a button up or button down |
java.util.HashMap<ControllerEvent.AnalogDataType,java.lang.Double> |
analogData()
Returns analog data associated with this event, such as the x & y axis positions of one of the analog sticks |
java.lang.String |
analogValuesToString()
Provide string representation of analog values for debugging |
ControllerEvent.CommonCodes |
cCode()
Returns the CommonCode corresponding with the controller button, stick, or trigger that generated this event |
void |
changeCommonCode(ControllerEvent.CommonCodes v)
Used internally |
int |
code()
Used internally |
int |
describeContents()
Used internally by IPC |
java.lang.String |
id()
Returns the BT address of the controller that generated this event |
boolean |
isValid()
|
KeyEvent |
keyEvent()
Unused |
void |
setId(java.lang.String bt_address)
|
java.lang.String |
toCodeString()
|
java.lang.String |
toString()
|
void |
writeToParcel(Parcel out,
int arg1)
Used internally by IPC |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static finalCREATOR
| Constructor Detail |
|---|
public ControllerEvent(java.lang.String controller_id,
ControllerEvent.Action action,
ControllerEvent.CommonCodes commonCode)
public ControllerEvent(java.lang.String controller_id,
ControllerEvent.CommonCodes analogCode,
java.util.HashMap<ControllerEvent.AnalogDataType,java.lang.Double> analogValues,
boolean fillInRelevantMinMaxDefaults)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String analogValuesToString()
public java.lang.String toCodeString()
public boolean isValid()
public java.lang.String id()
public ControllerEvent.Action action()
public java.util.HashMap<ControllerEvent.AnalogDataType,java.lang.Double> analogData()
public int code()
public ControllerEvent.CommonCodes cCode()
public void changeCommonCode(ControllerEvent.CommonCodes v)
v - public KeyEvent keyEvent()
public int describeContents()
public void writeToParcel(Parcel out,
int arg1)
out - arg1 - public void setId(java.lang.String bt_address)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||