|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdvancedController
The interface AdvancedController. AdvancedController extends the interface Controller to support
more controller capabilities (e.g. allows unlimited amount of axes, buttons,
POVs and trackballs).
It also allows checking for force feedback (FF) support.
Method Summary | |
---|---|
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) |
int |
getBallCount()
Gets the number of trackballs (balls) a device has. |
int[] |
getBallDelta(int ballIndex)
Gets the delta for the trackball specified by ballIndex. |
java.lang.String |
getBallName(int ballIndex)
Gets the trackball's name. |
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. |
int |
getPovCount()
Gets the device's point-of-view (POV) count. |
int |
getPovDirection(int povIndex)
Gets the direction of a POV. |
java.lang.String |
getPovName(int povIndex)
Gets the POV's name. |
int |
getPovX(int povIndex)
Gets the X coordinate's value of a POV. |
int |
getPovY(int povIndex)
Gets the Y coordinate's value of a POV. |
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. |
boolean |
isFFJoystick()
Checks if the device supports force feedback (FF). |
void |
setUAxisDeadZone(float zone)
Set the dead zone for the U axis. |
void |
setVAxisDeadZone(float zone)
Set the dead zone for the V axis. |
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 |
---|
boolean isFFJoystick()
AdvancedFFController
.
AdvancedFFController
int getPovCount()
Controller.getButtonCount()
,
Controller.getAxisCount()
,
getBallCount()
java.lang.String getPovName(int povIndex)
povIndex
- the POV index (POV indices start from 0)
getPovCount()
int getPovX(int povIndex)
povIndex
- the POV index (POV indices start from 0)
getPovDirection(int)
int getPovY(int povIndex)
povIndex
- the POV index (POV indices start from 0)
getPovDirection(int)
int getPovDirection(int povIndex)
povIndex
- the POV index (POV indices start from 0)
getPovX(int)
,
getPovY(int)
int getPov1X()
getPovX(int)
int getPov1Y()
getPovY(int)
int getPov2X()
getPovX(int)
int getPov2Y()
getPovY(int)
int getPov3X()
getPovX(int)
int getPov3Y()
getPovY(int)
int getPov4X()
getPovX(int)
int getPov4Y()
getPovY(int)
float getUAxisValue()
Controller.getAxisValue(int)
float getVAxisValue()
Controller.getAxisValue(int)
float getUAxisDeadZone()
setUAxisDeadZone(float)
,
Controller.getDeadZone(int)
float getVAxisDeadZone()
setVAxisDeadZone(float)
,
Controller.getDeadZone(int)
void setUAxisDeadZone(float zone)
zone
- the dead zone to use for the U axis: a value from 0f to AXIS_MAXIMUMgetUAxisDeadZone()
,
Controller.setDeadZone(int, float)
void setVAxisDeadZone(float zone)
zone
- the dead zone to use for the V axis: a value from 0f to AXIS_MAXIMUMgetVAxisDeadZone()
,
Controller.setDeadZone(int, float)
int getBallCount()
getPovCount()
,
Controller.getAxisCount()
java.lang.String getBallName(int ballIndex)
ballIndex
- the trackball index (ball indices start from 0)
getBallCount()
int[] getBallDelta(int ballIndex)
ballIndex
- the trackball index (ball indices start from 0)
int[] getBall1Delta()
getBallDelta(int)
int[] getBall2Delta()
getBallDelta(int)
int[] getBall3Delta()
getBallDelta(int)
int[] getBall4Delta()
getBallDelta(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |