|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.wisch.joystick.ffeffect.Effect
at.wisch.joystick.ffeffect.ConditionEffect
public abstract class ConditionEffect
The Class ConditionEffect. For ConditionEffect the direction is handled by
condition internals instead of a direction member.
Array indices for
rightSat, leftSat, rightCoef, leftCoef, deadband and center give the index of
the FF-axis (Array size is always 3):
- [0] is the X-axis
- [1] is the Y-axis
- [2] is the Z-axis
The term 'right' refers to the positive side of an axis and 'left'
refers to the negative side of an axis.
| Field Summary |
|---|
| Fields inherited from class at.wisch.joystick.ffeffect.Effect |
|---|
EFFECT_CONSTANT, EFFECT_CUSTOM, EFFECT_DAMPER, EFFECT_FRICTION, EFFECT_INERTIA, EFFECT_RAMP, EFFECT_SAWTOOHDOWN, EFFECT_SAWTOOTHUP, EFFECT_SINE, EFFECT_SPRING, EFFECT_SQUARE, EFFECT_TRIANGLE, INFINITE_LENGTH, MAX_DELAY, MAX_LENGTH, MAX_LEVEL, MIN_LEVEL, NO_BUTTON |
| Method Summary | |
|---|---|
float[] |
getCenter()
Gets the center for condition effects. |
float[] |
getDeadband()
Gets the deadband. |
int[] |
getLeftCoef()
Gets the leftCoef array: How fast to increase the force towards the negative side. |
int[] |
getLeftSat()
Gets the leftSat array: Level when joystick is to the negative side. |
int[] |
getRightCoef()
Gets the rightCoef array: How fast to increase the force towards the positive side. |
int[] |
getRightSat()
Gets the rightSat array: Level when joystick is to the positive side. |
int |
getStrength()
Gets the strength. |
void |
setCenter(float[] center)
Sets the center for condition effects. |
void |
setDeadband(float[] deadband)
Sets the deadband. 3 dead zone values, 1 for each axis. |
void |
setLeftCoef(int[] leftCoef)
Sets the leftCoef array: How fast to increase the force towards the negative side. |
void |
setLeftSat(int[] leftSat)
Sets the leftSat array: Level when joystick is to the negative side. |
void |
setRightCoef(int[] rightCoef)
Sets the rightCoef array: How fast to increase the force towards the positive side. |
void |
setRightSat(int[] rightSat)
Sets the rightSat array: Level when joystick is to the positive side. |
void |
setStrength(int strength)
Sets the strength for an effect. |
| Methods inherited from class at.wisch.joystick.ffeffect.Effect |
|---|
getButtonIndex, getButtonInterval, getDefaultDirection, getEffectDelay, getEffectLength, getEffectType, getName, setButtonIndex, setButtonInterval, setDefaultDirection, setEffectDelay, setEffectLength |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int[] getRightSat()
setRightSat(int[])public void setRightSat(int[] rightSat)
rightSat - the new rightSat (array of size 3, values from 0 to MAX_LEVEL
(32767))getRightSat()public int[] getLeftSat()
setLeftSat(int[])public void setLeftSat(int[] leftSat)
leftSat - the new leftSat (array of size 3, values from 0 to MAX_LEVEL
(32767))getLeftSat()public int[] getRightCoef()
setRightCoef(int[])public void setRightCoef(int[] rightCoef)
rightCoef - the new rightCoef (array of size 3, values from MIN_LEVEL
(-32768) to MAX_LEVEL (32767))getRightCoef()public int[] getLeftCoef()
setLeftCoef(int[])public void setLeftCoef(int[] leftCoef)
leftCoef - the new leftCoef (array of size 3, values from MIN_LEVEL
(-32768) to MAX_LEVEL (32767))getLeftCoef()public float[] getDeadband()
Joystick.getDeadZone(int)
.
setDeadband(float[]),
getCenter()public void setDeadband(float[] deadband)
Joystick.setDeadZone(int, float).
deadband - the new deadband values array (array of size 3, values from 0
to AXIS_MAXIMUM (1f))getDeadband(),
setCenter(float[])public float[] getCenter()
setCenter(float[]),
getDeadband()public void setCenter(float[] center)
center - the new center (array of size 3 (X-, Y- and Z-axis), values
from AXIS_MINIMUM (-1f) to AXIS_MAXIMUM(1f))getCenter(),
setDeadband(float[])public int getStrength()
getStrength in class EffectsetRightSat(int[]),
setLeftSat(int[])public void setStrength(int strength)
setStrength in class Effectstrength - the new strength (an int from 0 to MAX_LEVEL (32767))setRightSat(int[]),
setLeftSat(int[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||