|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Controller
A game controller of some sort that will provide input. The controller presents buttons and axes. Buttons are either pressed or not pressed. Axis provide analogue values.
Method Summary | |
---|---|
int |
getAxisCount()
Retrieve the number of axes available on this controller. |
java.lang.String |
getAxisName(int index)
Get the name that's given to the specified axis |
float |
getAxisValue(int index)
Retrieve the value thats currently available on a specified axis. |
int |
getButtonCount()
Retrieve the number of buttons available on this controller |
java.lang.String |
getButtonName(int index)
Get the name of the specified button. |
float |
getDeadZone(int index)
Get the dead zone for a specified axis |
int |
getIndex()
Get the index of this controller in the collection |
java.lang.String |
getName()
Get the name assigned to this controller. |
float |
getPovX()
Get the X-Axis value of the POV on this controller |
float |
getPovY()
Get the Y-Axis value of the POV on this controller |
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 |
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. |
boolean |
isButtonPressed(int index)
Check if a button is currently pressed |
void |
poll()
Poll the controller for new data. |
void |
setDeadZone(int index,
float zone)
Set the dead zone for the specified axis |
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 |
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 |
Method Detail |
---|
java.lang.String getName()
int getIndex()
int getButtonCount()
java.lang.String getButtonName(int index)
index
- The index of the button whose name should be retrieved
boolean isButtonPressed(int index)
index
- The button to check
void poll()
float getPovX()
float getPovY()
float getDeadZone(int index)
index
- The index of the axis for which to retrieve the dead zone
void setDeadZone(int index, float zone)
index
- The index of hte axis for which to set the dead zonezone
- The dead zone to use for the specified axisint getAxisCount()
java.lang.String getAxisName(int index)
index
- The index of the axis whose name should be retrieved
float getAxisValue(int index)
index
- The index of axis to be read
float getXAxisValue()
float getXAxisDeadZone()
void setXAxisDeadZone(float zone)
zone
- The dead zone to use for the X axisfloat getYAxisValue()
float getYAxisDeadZone()
void setYAxisDeadZone(float zone)
zone
- The dead zone to use for the Y axisfloat getZAxisValue()
float getZAxisDeadZone()
void setZAxisDeadZone(float zone)
zone
- The dead zone to use for the Z axisfloat getRXAxisValue()
float getRXAxisDeadZone()
void setRXAxisDeadZone(float zone)
zone
- The dead zone to use for the RX axisfloat getRYAxisValue()
float getRYAxisDeadZone()
void setRYAxisDeadZone(float zone)
zone
- The dead zone to use for the RY axisfloat getRZAxisValue()
float getRZAxisDeadZone()
void setRZAxisDeadZone(float zone)
zone
- The dead zone to use for the RZ axis
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |