|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.devices.components.DeviceComponent
public abstract class DeviceComponent
DeviceComponents can be keys, buttons, axes, etc.
| Nested Class Summary | |
|---|---|
static class |
DeviceComponent.Type
|
| Field Summary | |
|---|---|
protected static int |
nextID
|
| Constructor Summary | |
|---|---|
protected |
DeviceComponent(DeviceComponent.Type type,
java.lang.String name)
|
| Method Summary | |
|---|---|
void |
bindAction(InvokableInputAction action)
Binds an InputAction to this DeviceComponent, which is executed on a state change. |
void |
bindAction(InvokableInputAction action,
InputDevice device)
Binds an InputAction to this DeviceComponent, which is executed on a state change. |
int |
getDeviceComponentID()
|
java.lang.String |
getLocalizedName()
|
java.lang.String |
getName()
|
DeviceComponent.Type |
getType()
|
boolean |
isAnalog()
|
boolean |
isDigital()
|
void |
notifyBoundActions(InputDevice device,
int delta,
int state,
long nanoTime)
Notifies all bound InvokableInputActions. |
void |
unbindAction(InvokableInputAction action)
Unbinds an InputAction from this DeviceComponent. |
void |
unbindAction(InvokableInputAction action,
InputDevice device)
Unbinds an InputAction from this DeviceComponent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int nextID
| Constructor Detail |
|---|
protected DeviceComponent(DeviceComponent.Type type,
java.lang.String name)
| Method Detail |
|---|
public final int getDeviceComponentID()
public final java.lang.String getName()
public java.lang.String getLocalizedName()
public final DeviceComponent.Type getType()
public final boolean isDigital()
DeviceComponent is an instance of DigitalDeviceComponent.public final boolean isAnalog()
DeviceComponent is an instance of AnalogDeviceComponent.
public void bindAction(InvokableInputAction action,
InputDevice device)
action - the action to binddevice - the InputDevice to usepublic void bindAction(InvokableInputAction action)
action - the action to bind
public void unbindAction(InvokableInputAction action,
InputDevice device)
action - the action to binddevice - the InputDevice to usepublic void unbindAction(InvokableInputAction action)
action - the action to bind
public void notifyBoundActions(InputDevice device,
int delta,
int state,
long nanoTime)
InvokableInputActions.
device - delta - state -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||