6 |
/** A single input axis. |
/** A single input axis. |
7 |
*/ |
*/ |
8 |
public interface Axis { |
public interface Axis { |
9 |
|
/** Get the (user-readable) name of this axis. |
10 |
|
*/ |
11 |
|
String getName(); |
12 |
|
|
13 |
|
/** Set the main listener. |
14 |
|
* There is only one main listener at a time - the previous one will be |
15 |
|
* forgotten. |
16 |
|
*/ |
17 |
void setMainListener(AxisListener listener); |
void setMainListener(AxisListener listener); |
18 |
|
|
19 |
|
/** Set the state of this object; normal, calibrating or choosing. |
20 |
|
* @param state One of InputDeviceManager.STATE_* |
21 |
|
*/ |
22 |
|
void setState(int state); |
23 |
|
|
24 |
|
/** In the choosing state, returns the probability that this |
25 |
|
* axis has been chosen; some function of how much this |
26 |
|
* axis has been moved, between 0 and 1. |
27 |
|
*/ |
28 |
|
float getChoiceProbability(); |
29 |
} |
} |