|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.wisch.joystick.AbstractController
public abstract class AbstractController
The abstract class AbstractController. It implements some of the interface AdvancedController's methods, that just exist for convenience. E.g. getXAxisValue() is "redirected" to getAxisValue(0). It also defines some constants for the classes Joystick and FFJoystick.
Joystick extends this abstract class, hence it also implements AdvancedController. FFJoystick extends Joystick and implements the interface AdvancedFFController (which is an extension of AdvancedController).
Field Summary | |
---|---|
static float |
AXIS_DEFAULT_DEAD_ZONE
The constant AXIS_DEFAULT_DEAD_ZONE (0.03f): Default dead zone for analogue axes. |
static float |
AXIS_MAXIMUM
The constant AXIS_MAXIMUM (1.0f ): Analogue axis position on maximum (i.e. to the positive side). |
static float |
AXIS_MINIMUM
The constant AXIS_MINIMUM (-1.0f ): Analogue axis position on minimum (i.e. to the negative side). |
static float |
AXIS_NEUTRAL
The constant AXIS_NEUTRAL (0.0f ): Analogue axis is in central position. |
static int |
DEFAULT_AUTOCENTER_VALUE
The constant DEFAULT_AUTOCENTER_VALUE (0 ): Default autocenter value for FF joysticks. |
static int |
DEFAULT_GAIN_VALUE
The constant DEFAULT_GAIN_VALUE (100 ): Default gain value for FF joysticks. |
static int |
INFINITE_TIMES
The constant INFINITE_TIMES: Play an FF effect infinite times. |
static int |
POV_AXIS_NEGATIVE
The constant POV_AXIS_NEGATIVE (-1 ): POV axis is on the negative side. |
static int |
POV_AXIS_NEUTRAL
The constant POV_AXIS_NEUTRAL (0 ): POV axis is in neutral position (center). |
static int |
POV_AXIS_POSITIVE
The constant POV_AXIS_POSITIVE (1 ): POV axis is on the positive side. |
static int |
POV_CENTERED
The constant POV_CENTERED (-1 ): POV is in center position. |
static int |
POV_DOWN
The constant POV_DOWN (18000 ): POV position is down. |
static int |
POV_DOWN_LEFT
The constant POV_DOWN_LEFT (22500 ): POV position is down-left. |
static int |
POV_DOWN_RIGHT
The constant POV_DOWN_RIGHT (13500 ): POV position is down-right. |
static int |
POV_LEFT
The constant POV_LEFT (27000 ): POV position is left. |
static int |
POV_RIGHT
The constant POV_RIGHT (9000 ): POV position is right. |
static int |
POV_UP
The constant POV_UP (0 ): POV position is up. |
static int |
POV_UP_LEFT
The constant POV_UP_LEFT (31500 ): POV position is up-left. |
static int |
POV_UP_RIGHT
The constant POV_UP_RIGHT (4500 ): POV position is up-right. |
Method Summary | |
---|---|
java.lang.String |
getAxisName(int axisIndex)
Get the name that's given to the specified axis |
int[] |
getBall1Delta()
Gets the delta for the first trackball (ballIndex 0) |
int[] |
getBall2Delta()
Gets the delta for the second trackball (ballIndex 1) |
int[] |
getBall3Delta()
Gets the delta for the third trackball (ballIndex 2) |
int[] |
getBall4Delta()
Gets the delta for the fourth trackball (ballIndex 3) |
java.lang.String |
getBallName(int ballIndex)
Gets the trackball's name. |
java.lang.String |
getButtonName(int buttonIndex)
Get the name of the specified button. |
int |
getPov1X()
Gets the first POV's X coordinate value. |
int |
getPov1Y()
Gets the first POV's Y coordinate value. |
int |
getPov2X()
Gets the second POV's X coordinate value. |
int |
getPov2Y()
Gets the second POV's Y coordinate value. |
int |
getPov3X()
Gets the third POV's X coordinate value. |
int |
getPov3Y()
Gets the third POV's Y coordinate value. |
int |
getPov4X()
Gets the fourth POV's X coordinate value. |
int |
getPov4Y()
Gets the fourth POV's Y coordinate value. |
java.lang.String |
getPovName(int povIndex)
Gets the POV's name. |
float |
getPovX()
Deprecated. uses float where int would be sufficient. Use getPovValueX(0) instead. |
float |
getPovY()
Deprecated. uses float where int would be sufficient. Use getPovValueY(0) instead. |
float |
getRXAxisDeadZone()
Get the dead zone for the RX axis. |
float |
getRXAxisValue()
Get the value from the RX axis if there is one. |
float |
getRYAxisDeadZone()
Get the dead zone for the RY axis. |
float |
getRYAxisValue()
Get the value from the RY axis if there is one. |
float |
getRZAxisDeadZone()
Get the dead zone for the RZ axis. |
float |
getRZAxisValue()
Get the value from the RZ axis if there is one. |
float |
getUAxisDeadZone()
Get the dead zone for the U axis. |
float |
getUAxisValue()
Get the value from the U axis if there is one. |
float |
getVAxisDeadZone()
Get the dead zone for the V axis. |
float |
getVAxisValue()
Get the value from the V axis if there is one. |
float |
getXAxisDeadZone()
Get the dead zone for the X axis. |
float |
getXAxisValue()
Get the value from the X axis if there is one. |
float |
getYAxisDeadZone()
Get the dead zone for the Y axis. |
float |
getYAxisValue()
Get the value from the Y axis if there is one. |
float |
getZAxisDeadZone()
Get the dead zone for the Z axis. |
float |
getZAxisValue()
Get the value from the Z axis if there is one. |
void |
setRXAxisDeadZone(float zone)
Set the dead zone for the RX axis. |
void |
setRYAxisDeadZone(float zone)
Set the dead zone for the RY axis. |
void |
setRZAxisDeadZone(float zone)
Set the dead zone for the RZ axis. |
void |
setUAxisDeadZone(float zone)
Set the dead zone for the U axis. |
void |
setVAxisDeadZone(float zone)
Set the dead zone for the V axis. |
void |
setXAxisDeadZone(float zone)
Set the dead zone for the X axis. |
void |
setYAxisDeadZone(float zone)
Set the dead zone for the Y axis. |
void |
setZAxisDeadZone(float zone)
Set the dead zone for the Z axis. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface at.wisch.joystick.AdvancedController |
---|
getBallCount, getBallDelta, getPovCount, getPovDirection, getPovX, getPovY, isFFJoystick |
Methods inherited from interface org.lwjgl.input.Controller |
---|
getAxisCount, getAxisValue, getButtonCount, getDeadZone, getIndex, getName, isButtonPressed, poll, setDeadZone |
Field Detail |
---|
public static final int POV_CENTERED
public static final int POV_UP
public static final int POV_UP_RIGHT
public static final int POV_RIGHT
public static final int POV_DOWN_RIGHT
public static final int POV_DOWN
public static final int POV_DOWN_LEFT
public static final int POV_LEFT
public static final int POV_UP_LEFT
public static final int POV_AXIS_NEUTRAL
public static final int POV_AXIS_POSITIVE
public static final int POV_AXIS_NEGATIVE
public static final float AXIS_NEUTRAL
public static final float AXIS_MAXIMUM
public static final float AXIS_MINIMUM
public static final float AXIS_DEFAULT_DEAD_ZONE
public static final int INFINITE_TIMES
public static final int DEFAULT_GAIN_VALUE
public static final int DEFAULT_AUTOCENTER_VALUE
Method Detail |
---|
public java.lang.String getButtonName(int buttonIndex)
getButtonName
in interface Controller
buttonIndex
- the index of the button whose name should be retrieved (button indices start at 0)
Controller.getButtonCount()
public final java.lang.String getPovName(int povIndex)
getPovName
in interface AdvancedController
povIndex
- the POV index (POV indices start from 0)
AdvancedController.getPovCount()
public final int getPov1X()
getPov1X
in interface AdvancedController
AdvancedController.getPovX(int)
public final int getPov1Y()
getPov1Y
in interface AdvancedController
AdvancedController.getPovY(int)
public final int getPov2X()
getPov2X
in interface AdvancedController
AdvancedController.getPovX(int)
public final int getPov2Y()
getPov2Y
in interface AdvancedController
AdvancedController.getPovY(int)
public final int getPov3X()
getPov3X
in interface AdvancedController
AdvancedController.getPovX(int)
public final int getPov3Y()
getPov3Y
in interface AdvancedController
AdvancedController.getPovY(int)
public final int getPov4X()
getPov4X
in interface AdvancedController
AdvancedController.getPovX(int)
public final int getPov4Y()
getPov4Y
in interface AdvancedController
AdvancedController.getPovY(int)
@Deprecated public final float getPovX()
getPovX
in interface Controller
AdvancedController.getPovDirection(int)
@Deprecated public final float getPovY()
getPovY
in interface Controller
AdvancedController.getPovDirection(int)
public final java.lang.String getAxisName(int axisIndex)
getAxisName
in interface Controller
axisIndex
- The index of the axis whose name should be retrieved (axis indices start with 0)
Controller.getAxisCount()
public final float getXAxisValue()
getXAxisValue
in interface Controller
Controller.getAxisValue(int)
public final float getYAxisValue()
getYAxisValue
in interface Controller
Controller.getAxisValue(int)
public final float getZAxisValue()
getZAxisValue
in interface Controller
Controller.getAxisValue(int)
public final float getRXAxisValue()
getRXAxisValue
in interface Controller
Controller.getAxisValue(int)
public final float getRYAxisValue()
getRYAxisValue
in interface Controller
Controller.getAxisValue(int)
public final float getRZAxisValue()
getRZAxisValue
in interface Controller
Controller.getAxisValue(int)
public final float getUAxisValue()
getUAxisValue
in interface AdvancedController
Controller.getAxisValue(int)
public final float getVAxisValue()
getVAxisValue
in interface AdvancedController
Controller.getAxisValue(int)
public final float getXAxisDeadZone()
getXAxisDeadZone
in interface Controller
Controller.setXAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getYAxisDeadZone()
getYAxisDeadZone
in interface Controller
Controller.setYAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getZAxisDeadZone()
getZAxisDeadZone
in interface Controller
Controller.setZAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getRXAxisDeadZone()
getRXAxisDeadZone
in interface Controller
Controller.setRXAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getRYAxisDeadZone()
getRYAxisDeadZone
in interface Controller
Controller.setRYAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getRZAxisDeadZone()
getRZAxisDeadZone
in interface Controller
Controller.setRZAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getUAxisDeadZone()
getUAxisDeadZone
in interface AdvancedController
AdvancedController.setUAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final float getVAxisDeadZone()
getVAxisDeadZone
in interface AdvancedController
AdvancedController.setVAxisDeadZone(float)
,
Controller.getDeadZone(int)
public final void setXAxisDeadZone(float zone)
setXAxisDeadZone
in interface Controller
zone
- the dead zone to use for the X axis: a value from 0f to AXIS_MAXIMUM (1f)Controller.getXAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setYAxisDeadZone(float zone)
setYAxisDeadZone
in interface Controller
zone
- the dead zone to use for the Y axis: a value from 0f to AXIS_MAXIMUM (1f)Controller.getYAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setZAxisDeadZone(float zone)
setZAxisDeadZone
in interface Controller
zone
- the dead zone to use for the Z axis: a value from 0f to AXIS_MAXIMUM (1f)Controller.getZAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setRXAxisDeadZone(float zone)
setRXAxisDeadZone
in interface Controller
zone
- the dead zone to use for the RX axis: a value from 0f to AXIS_MAXIMUM (1f)Controller.getRXAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setRYAxisDeadZone(float zone)
setRYAxisDeadZone
in interface Controller
zone
- the dead zone to use for the RY axis: a value from 0f to AXIS_MAXIMUM (1f)Controller.getRYAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setRZAxisDeadZone(float zone)
setRZAxisDeadZone
in interface Controller
zone
- the dead zone to use for the RZ axis: a value from 0f to AXIS_MAXIMUM (1f)Controller.getRZAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setUAxisDeadZone(float zone)
setUAxisDeadZone
in interface AdvancedController
zone
- the dead zone to use for the U axis: a value from 0f to AXIS_MAXIMUMAdvancedController.getUAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final void setVAxisDeadZone(float zone)
setVAxisDeadZone
in interface AdvancedController
zone
- the dead zone to use for the V axis: a value from 0f to AXIS_MAXIMUMAdvancedController.getVAxisDeadZone()
,
Controller.setDeadZone(int, float)
public final java.lang.String getBallName(int ballIndex)
getBallName
in interface AdvancedController
ballIndex
- the trackball index (ball indices start from 0)
AdvancedController.getBallCount()
public final int[] getBall1Delta()
getBall1Delta
in interface AdvancedController
AdvancedController.getBallDelta(int)
public final int[] getBall2Delta()
getBall2Delta
in interface AdvancedController
AdvancedController.getBallDelta(int)
public final int[] getBall3Delta()
getBall3Delta
in interface AdvancedController
AdvancedController.getBallDelta(int)
public final int[] getBall4Delta()
getBall4Delta
in interface AdvancedController
AdvancedController.getBallDelta(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |