| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The number of axes available on this controller.Retrieve the number of axes available on this controller. |
| public String | Returns: The name of the specified axis.The index of the axis whose name should be retrieved index)Get the name that's given to the specified axis |
| public float | Returns: The value from the specified axis.The index of axis to be read index)Retrieve the value thats currently available on a specified axis. |
| public int | Returns: The number of butotns available on this controllerRetrieve the number of buttons available on this controller |
| public String | Returns: The name of the button requestedThe index of the button whose name should be retrieved index)Get the name of the specified button. |
| public float | Returns: The dead zone for the specified axisThe index of the axis for which to retrieve the dead zone index)Get the dead zone for a specified axis |
| public int | Returns: The index of this controller in the collectionGet the index of this controller in the collection |
| public String | |
| public float | Returns: The X-Axis value of the POV on this controllerGet the X-Axis value of the POV on this controller |
| public float | Returns: The Y-Axis value of the POV on this controllerGet the Y-Axis value of the POV on this controller |
| public int | |
| public String | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public boolean | Returns: True if the button is currently pressedThe button to check index)Check if a button is currently pressed |
| public void | |
| public void | setDeadZone(int
The index of hte axis for which to set the dead zone index, float The dead zone to use for the specified axis zone)Set the dead zone for the specified axis |
| public void | setRumblerStrength(int
The index of the rumbler index, float The strength to vibrate at strength)Sets the vibration strength of the specified rumbler |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| getAxisCount | back to summary |
|---|---|
| public int getAxisCount() Retrieve the number of axes available on this controller.
| |
| getAxisName | back to summary |
|---|---|
| public String getAxisName(int index) Get the name that's given to the specified axis
| |
| getAxisValue | back to summary |
|---|---|
| public float getAxisValue(int index) Retrieve the value thats currently available on a specified axis. The value will always be between 1.0 and -1.0 and will calibrate as values are passed read. It may be useful to get the player to wiggle the joystick from side to side to get the calibration right.
| |
| getButtonCount | back to summary |
|---|---|
| public int getButtonCount() Retrieve the number of buttons available on this controller
| |
| getButtonName | back to summary |
|---|---|
| public String getButtonName(int index) Get the name of the specified button. Be warned, often this is as exciting as "Button X"
| |
| getDeadZone | back to summary |
|---|---|
| public float getDeadZone(int index) Get the dead zone for a specified axis
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Get the index of this controller in the collection
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name assigned to this controller.
| |
| getPovX | back to summary |
|---|---|
| public float getPovX() Get the X-Axis value of the POV on this controller
| |
| getPovY | back to summary |
|---|---|
| public float getPovY() Get the Y-Axis value of the POV on this controller
| |
| getRumblerCount | back to summary |
|---|---|
| public int getRumblerCount() Returns the number of rumblers this controller supports | |
| getRumblerName | back to summary |
|---|---|
| public String getRumblerName(int index) Returns the name of the specified rumbler
| |
| getRXAxisDeadZone | back to summary |
|---|---|
| public float getRXAxisDeadZone() Get the dead zone for the RX axis.
| |
| getRXAxisValue | back to summary |
|---|---|
| public float getRXAxisValue() Get the value from the RX axis if there is one. If no RX axis is defined a zero value will be returned.
| |
| getRYAxisDeadZone | back to summary |
|---|---|
| public float getRYAxisDeadZone() Get the dead zone for the RY axis.
| |
| getRYAxisValue | back to summary |
|---|---|
| public float getRYAxisValue() Get the value from the RY axis if there is one. If no RY axis is defined a zero value will be returned.
| |
| getRZAxisDeadZone | back to summary |
|---|---|
| public float getRZAxisDeadZone() Get the dead zone for the RZ axis.
| |
| getRZAxisValue | back to summary |
|---|---|
| public float getRZAxisValue() Get the value from the RZ axis if there is one. If no RZ axis is defined a zero value will be returned.
| |
| getXAxisDeadZone | back to summary |
|---|---|
| public float getXAxisDeadZone() Get the dead zone for the X axis.
| |
| getXAxisValue | back to summary |
|---|---|
| public float getXAxisValue() Get the value from the X axis if there is one. If no X axis is defined a zero value will be returned.
| |
| getYAxisDeadZone | back to summary |
|---|---|
| public float getYAxisDeadZone() Get the dead zone for the Y axis.
| |
| getYAxisValue | back to summary |
|---|---|
| public float getYAxisValue() Get the value from the Y axis if there is one. If no Y axis is defined a zero value will be returned.
| |
| getZAxisDeadZone | back to summary |
|---|---|
| public float getZAxisDeadZone() Get the dead zone for the Z axis.
| |
| getZAxisValue | back to summary |
|---|---|
| public float getZAxisValue() Get the value from the Z axis if there is one. If no Z axis is defined a zero value will be returned.
| |
| isButtonPressed | back to summary |
|---|---|
| public boolean isButtonPressed(int index) Check if a button is currently pressed
| |
| poll | back to summary |
|---|---|
| public void poll() Poll the controller for new data. This will also update events | |
| setDeadZone | back to summary |
|---|---|
| public void setDeadZone(int index, float zone) Set the dead zone for the specified axis
| |
| setRumblerStrength | back to summary |
|---|---|
| public void setRumblerStrength(int index, float strength) Sets the vibration strength of the specified rumbler
| |
| setRXAxisDeadZone | back to summary |
|---|---|
| public void setRXAxisDeadZone(float zone) Set the dead zone for the RX axis
| |
| setRYAxisDeadZone | back to summary |
|---|---|
| public void setRYAxisDeadZone(float zone) Set the dead zone for the RY axis
| |
| setRZAxisDeadZone | back to summary |
|---|---|
| public void setRZAxisDeadZone(float zone) Set the dead zone for the RZ axis
| |
| setXAxisDeadZone | back to summary |
|---|---|
| public void setXAxisDeadZone(float zone) Set the dead zone for the X axis
| |
| setYAxisDeadZone | back to summary |
|---|---|
| public void setYAxisDeadZone(float zone) Set the dead zone for the Y axis
| |
| setZAxisDeadZone | back to summary |
|---|---|
| public void setZAxisDeadZone(float zone) Set the dead zone for the Z axis
| |