|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.wisch.joystick.event.FeatureNotSupportedEvent
public class FeatureNotSupportedEvent
The Class FeatureNotSupportedEvent. A FeatureNotSupportedEvent occurs
when a method is called with an illegal parameter, like requesting a joystick
that does not exist, asking for a button's state which does not even exist,
setting gain on a device that does not support it, trying to set a parameter
for an FF effect that is not allowed, etc.
It is strongly recommended to listen to FeatureNotSupportedEvents, at least during development.
FeatureNotSupportedEventManager
,
FeatureNotSupportedEventListener
Field Summary | |
---|---|
static int |
AUTOCENTER
The constant AUTOCENTER: device does not support setting autocenter. |
static int |
AUTOCENTERVALUE
The constant AUTOCENTERVALUE: illegal value for setting autocenter was submitted. |
static int |
DIRECTION_IS_NULL
The constant DIRECTION_IS_NULL: null was submitted, while it should have been an instance of Direction. |
static int |
DIRECTIONVALUE
The constant DIRECTIONVALUE: illegal value or array size for direction property was submitted. |
static int |
EFFECT
The constant EFFECT: device does not support the submitted type of effect. |
static int |
EFFECTVALUE
The constant EFFECTVALUE: illegal value or array size for effect property was submitted. |
static int |
GAIN
The constant GAIN: device does not support setting gain. |
static int |
GAINVALUE
The constant GAINVALUE: illegal value for setting gain was submitted. |
static int |
PAUSE
The constant PAUSE: device does not support pause/unpause. |
Constructor Summary | |
---|---|
FeatureNotSupportedEvent(int deviceIndex,
int feature,
int value)
Instantiates a new FeatureNotSupportedEvent. |
Method Summary | |
---|---|
int |
getDeviceIndex()
Gets the the index of the Joystick where the event occured. |
int |
getFeature()
Gets the feature that is not supported. |
int |
getValue()
Gets the value for the feature that is not supported (not always used). |
java.lang.String |
toString()
Returns a String describing the FeatureNotSupportedEvent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GAIN
public static final int GAINVALUE
public static final int AUTOCENTER
public static final int AUTOCENTERVALUE
public static final int PAUSE
public static final int EFFECT
public static final int EFFECTVALUE
public static final int DIRECTION_IS_NULL
public static final int DIRECTIONVALUE
Constructor Detail |
---|
public FeatureNotSupportedEvent(int deviceIndex, int feature, int value)
deviceIndex
- the index of the Joystick where the event occuredfeature
- the feature that is not supported (one of the constants defined in this class)value
- the value for the feature that is not supported (not always used)Method Detail |
---|
public int getDeviceIndex()
public int getFeature()
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |