|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.wisch.joystick.AbstractController
at.wisch.joystick.Joystick
at.wisch.joystick.FFJoystick
public class FFJoystick
The class FFJoystick. This is the class that actually represents FFJoystick
objects, which are necessary for playing force feedback effects on a Joystick. I also inherits all the capabilities for input handling from Joystick.
Attention: do not instantiate FFJoystick objects yourself. Aquire FFJoysticks
using JoystickManager.
| Field Summary |
|---|
| Fields inherited from class at.wisch.joystick.AbstractController |
|---|
AXIS_DEFAULT_DEAD_ZONE, AXIS_MAXIMUM, AXIS_MINIMUM, AXIS_NEUTRAL, DEFAULT_AUTOCENTER_VALUE, DEFAULT_GAIN_VALUE, INFINITE_TIMES, POV_AXIS_NEGATIVE, POV_AXIS_NEUTRAL, POV_AXIS_POSITIVE, POV_CENTERED, POV_DOWN, POV_DOWN_LEFT, POV_DOWN_RIGHT, POV_LEFT, POV_RIGHT, POV_UP, POV_UP_LEFT, POV_UP_RIGHT |
| Method Summary | |
|---|---|
boolean |
destroyAll()
Destroy all effects: remove all effects, that are currently stored on the device. |
boolean |
destroyEffect(Effect effect)
Destroy effect: remove an effect from the device. |
int |
getAutoCenter()
Gets the currently set autocenter value. |
java.lang.String |
getFFDescription()
Gets a short description of the joystick's capabilities for FF. |
int |
getGain()
Gets the currently set gain value. |
int |
getNumOfFFAxes()
Deprecated. on some operating systems this method will return a fixed value for any joystick. To be really platform independent work without using it. Simply assume the joystick has 2 FF axes. |
int |
getPlayableNumOfEffects()
Deprecated. on some operating systems this method will return a fixed value for any joystick. To be really platform independent work without using it. Simply assume the joystick can play only few effects at once(~ around 10). |
ExtendedEffect |
getSimpleEffect()
Gets a simple effect. |
int |
getStorableNumOfEffects()
Deprecated. on some operating systems this method will return a fixed value for any joystick. To be really platform independent work without using it. Simply assume the joystick can store only few effects (~ around 10). |
java.util.HashSet<java.lang.Class<? extends Effect>> |
getSupportedEffects()
Gets a HashSet of supported effects by this controller. |
boolean |
isAutocenterSupported()
Checks if auto centering is supported by the device. |
boolean |
isEffectSupported(java.lang.Class<? extends Effect> effectClass)
Checks if an effect is supported. |
boolean |
isEffectSupported(Effect effect)
Checks if an effect is supported. |
boolean |
isGainSupported()
Checks if a device supports setting gain. |
boolean |
isPaused()
Checks if the device is currently paused. |
boolean |
isPauseSupported()
Checks if the device supports pause/unpause for played effects. |
boolean |
isPlaying(Effect effect)
Checks if an effect is currently playing. |
boolean |
isQueryingEffectStatusSupported()
Checks if is querying the effect status is supported. |
boolean |
newEffect(Effect effect)
Upload a new effect to the device. |
boolean |
pause()
Deprecated. on some operating systems pause/unpause is never supported for any joystick. To be really platform independent work without pause/unpause. |
boolean |
playEffect(Effect effect,
int iterations)
Playback an effect on the device. |
boolean |
setAutoCenter(int autocenterValue)
Sets the auto center value in %. |
boolean |
setGain(int gainValue)
Sets the gain value in %. |
boolean |
stopAll()
Stop all effects that are currently stored on the device. |
boolean |
stopEffect(Effect effect)
Stop an effect which is currently on the device. |
java.lang.String |
toString()
Gets a string containing the joystick's name and the description of the input and FF capabilities. |
boolean |
unpause()
Deprecated. on some operating systems pause/unpause is never supported for any joystick. To be really platform independent work without pause/unpause. |
boolean |
updateEffect(Effect effect)
Update an effect which was already uploaded to the device. |
| Methods inherited from class at.wisch.joystick.Joystick |
|---|
getAxisCount, getAxisValue, getBallCount, getBallDelta, getButtonCount, getDeadZone, getDescription, getIndex, getInvertAxis, getInvertBall, getInvertPov, getName, getPovCount, getPovDirection, getPovX, getPovY, isButtonPressed, isFFJoystick, poll, setDeadZone, setInvertAxis, setInvertBall, setInvertPov |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface at.wisch.joystick.AdvancedController |
|---|
getBall1Delta, getBall2Delta, getBall3Delta, getBall4Delta, getBallCount, getBallDelta, getBallName, getPov1X, getPov1Y, getPov2X, getPov2Y, getPov3X, getPov3Y, getPov4X, getPov4Y, getPovCount, getPovDirection, getPovName, getPovX, getPovY, getUAxisDeadZone, getUAxisValue, getVAxisDeadZone, getVAxisValue, isFFJoystick, setUAxisDeadZone, setVAxisDeadZone |
| Methods inherited from interface org.lwjgl.input.Controller |
|---|
getAxisCount, getAxisName, getAxisValue, getButtonCount, getButtonName, getDeadZone, getIndex, getName, getPovX, getPovY, getRXAxisDeadZone, getRXAxisValue, getRYAxisDeadZone, getRYAxisValue, getRZAxisDeadZone, getRZAxisValue, getXAxisDeadZone, getXAxisValue, getYAxisDeadZone, getYAxisValue, getZAxisDeadZone, getZAxisValue, isButtonPressed, poll, setDeadZone, setRXAxisDeadZone, setRYAxisDeadZone, setRZAxisDeadZone, setXAxisDeadZone, setYAxisDeadZone, setZAxisDeadZone |
| Method Detail |
|---|
public java.lang.String toString()
toString in class JoystickJoystick.getName(),
Joystick.getDescription(),
getFFDescription()public java.lang.String getFFDescription()
toString(),
getSupportedEffects(),
isPauseSupported(),
isGainSupported(),
isAutocenterSupported()public java.util.HashSet<java.lang.Class<? extends Effect>> getSupportedEffects()
getSupportedEffects in interface AdvancedFFControllerHashSet,
Effectpublic boolean isEffectSupported(Effect effect)
isEffectSupported in interface AdvancedFFControllereffect - an Effect instance
Effectpublic boolean isEffectSupported(java.lang.Class<? extends Effect> effectClass)
isEffectSupported in interface AdvancedFFControllereffectClass - an Effect class
Effectpublic boolean isQueryingEffectStatusSupported()
isQueryingEffectStatusSupported in interface AdvancedFFControllerEffect@Deprecated public int getNumOfFFAxes()
getNumOfFFAxes in interface AdvancedFFControllerDirection@Deprecated public int getPlayableNumOfEffects()
getPlayableNumOfEffects in interface AdvancedFFControllerAdvancedFFController.getStorableNumOfEffects()@Deprecated public int getStorableNumOfEffects()
getStorableNumOfEffects in interface AdvancedFFControllerAdvancedFFController.getPlayableNumOfEffects()public boolean isGainSupported()
isGainSupported in interface AdvancedFFControllerAdvancedFFController.setGain(int),
AdvancedFFController.getGain()public int getGain()
getGain in interface AdvancedFFControllerAdvancedFFController.setGain(int),
AdvancedFFController.isGainSupported()public boolean setGain(int gainValue)
setGain in interface AdvancedFFControllergainValue - the % gain value: any value from 0 to 100
AdvancedFFController.isGainSupported(),
AdvancedFFController.getGain()public boolean isAutocenterSupported()
isAutocenterSupported in interface AdvancedFFControllerAdvancedFFController.getAutoCenter(),
AdvancedFFController.setAutoCenter(int)public int getAutoCenter()
getAutoCenter in interface AdvancedFFControllerAdvancedFFController.isAutocenterSupported(),
AdvancedFFController.setAutoCenter(int)public boolean setAutoCenter(int autocenterValue)
setAutoCenter in interface AdvancedFFControllerautocenterValue - the % autocenter strength: a value from 0 to 100
AdvancedFFController.isAutocenterSupported(),
AdvancedFFController.getAutoCenter()public boolean isPauseSupported()
isPauseSupported in interface AdvancedFFControllerAdvancedFFController.pause(),
AdvancedFFController.unpause(),
AdvancedFFController.isPaused()@Deprecated public boolean pause()
pause in interface AdvancedFFControllerAdvancedFFController.isPauseSupported(),
AdvancedFFController.unpause(),
AdvancedFFController.isPaused()@Deprecated public boolean unpause()
AdvancedFFController.pause() was called.
unpause in interface AdvancedFFControllerAdvancedFFController.isPauseSupported(),
AdvancedFFController.pause(),
AdvancedFFController.isPaused()public boolean isPaused()
isPaused in interface AdvancedFFControllerAdvancedFFController.isPauseSupported(),
AdvancedFFController.pause(),
AdvancedFFController.unpause()public ExtendedEffect getSimpleEffect()
ConstantEffect, RampEffect, SineEffect, SquareEffect, TriangleEffect,
SawtoothUpEffect, SawtoothDownEffect,
ExtendedEffect or null if none is supportedpublic boolean newEffect(Effect effect)
newEffect in interface AdvancedFFControllereffect - the Effect
AdvancedFFController.isEffectSupported(Effect),
AdvancedFFController.playEffect(Effect, int),
AdvancedFFController.stopEffect(Effect),
AdvancedFFController.destroyEffect(Effect)
public boolean playEffect(Effect effect,
int iterations)
playEffect in interface AdvancedFFControllereffect - the Effect to be playediterations - the number of iterations (i.e. how often to play the effect): any positive integer, or INFINITE_TIMES
AdvancedFFController.newEffect(Effect),
AdvancedFFController.updateEffect(Effect),
AdvancedFFController.stopEffect(Effect),
AdvancedFFController.pause(),
AdvancedFFController.unpause()public boolean isPlaying(Effect effect)
isPlaying in interface AdvancedFFControllereffect - the Effect to check
AdvancedFFController.playEffect(Effect, int),
AdvancedFFController.stopEffect(Effect),
AdvancedFFController.pause(),
AdvancedFFController.unpause()public boolean updateEffect(Effect effect)
updateEffect in interface AdvancedFFControllereffect - the Effect to be updated
AdvancedFFController.newEffect(Effect),
AdvancedFFController.playEffect(Effect, int)public boolean stopEffect(Effect effect)
stopEffect in interface AdvancedFFControllereffect - the Effect to be stopped
AdvancedFFController.stopAll(),
AdvancedFFController.destroyEffect(Effect)public boolean destroyEffect(Effect effect)
destroyEffect in interface AdvancedFFControllereffect - the Effect to be removed from the device
AdvancedFFController.destroyAll(),
AdvancedFFController.stopEffect(Effect)public boolean stopAll()
stopAll in interface AdvancedFFControllerAdvancedFFController.stopEffect(Effect),
AdvancedFFController.destroyAll()public boolean destroyAll()
destroyAll in interface AdvancedFFControllerAdvancedFFController.destroyEffect(Effect),
AdvancedFFController.stopAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||