| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The number of axes available on this controller.Implements org. |
| public String | Returns: The name of the specified axis.The index of the axis whose name should be retrieved index)Implements org. |
| public float | Returns: The value from the specified axis.The index of axis to be read index)Implements org. |
| public int | Returns: The number of butotns available on this controllerImplements org. |
| public String | Returns: The name of the button requestedThe index of the button whose name should be retrieved index)Implements org. |
| public float | Returns: The dead zone for the specified axisThe index of the axis for which to retrieve the dead zone index)Implements org. |
| public int | Returns: The index of this controller in the collectionImplements org. |
| public String | Returns: The name assigned to this controllerImplements org. |
| public float | Returns: The X-Axis value of the POV on this controllerImplements org. |
| public float | Returns: The Y-Axis value of the POV on this controllerImplements org. |
| public int | getRumblerCount()
Implements org. |
| public String | getRumblerName(int
The rumbler index index)Implements org. |
| public float | Returns: The dead zone for the RX axisImplements org. |
| public float | Returns: The value from the RX axisImplements org. |
| public float | Returns: The dead zone for the RY axisImplements org. |
| public float | Returns: The value from the RY axisImplements org. |
| public float | Returns: The dead zone for the RZ axisImplements org. |
| public float | Returns: The value from the RZ axisImplements org. |
| public float | Returns: The dead zone for the X axisImplements org. |
| public float | Returns: The value from the X axisImplements org. |
| public float | Returns: The dead zone for the Y axisImplements org. |
| public float | Returns: The value from the Y axisImplements org. |
| public float | Returns: The dead zone for the Z axisImplements org. |
| public float | Returns: The value from the Z axisImplements org. |
| public boolean | Returns: True if the button is currently pressedThe button to check index)Implements org. |
| 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)Implements org. |
| public void | setRumblerStrength(int
The index of the rumbler index, float The strength to vibrate at strength)Implements org. |
| public void | setRXAxisDeadZone(float
The dead zone to use for the RX axis zone)Implements org. |
| public void | setRYAxisDeadZone(float
The dead zone to use for the RY axis zone)Implements org. |
| public void | setRZAxisDeadZone(float
The dead zone to use for the RZ axis zone)Implements org. |
| public void | setXAxisDeadZone(float
The dead zone to use for the X axis zone)Implements org. |
| public void | setYAxisDeadZone(float
The dead zone to use for the Y axis zone)Implements org. |
| public void | setZAxisDeadZone(float
The dead zone to use for the Z axis zone)Implements org. |
| ControllerAdapter | back to summary |
|---|---|
| public ControllerAdapter() | |
| getAxisCount | back to summary |
|---|---|
| public int getAxisCount() Implements org. Retrieve the number of axes available on this controller.
| |
| getAxisName | back to summary |
|---|---|
| public String getAxisName(int index) Implements org. Get the name that's given to the specified axis
| |
| getAxisValue | back to summary |
|---|---|
| public float getAxisValue(int index) Implements org. 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() Implements org. Retrieve the number of buttons available on this controller
| |
| getButtonName | back to summary |
|---|---|
| public String getButtonName(int index) Implements org. 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) Implements org. Get the dead zone for a specified axis
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Implements org. Get the index of this controller in the collection
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Get the name assigned to this controller.
| |
| getPovX | back to summary |
|---|---|
| public float getPovX() Implements org. Get the X-Axis value of the POV on this controller
| |
| getPovY | back to summary |
|---|---|
| public float getPovY() Implements org. Get the Y-Axis value of the POV on this controller
| |
| getRumblerCount | back to summary |
|---|---|
| public int getRumblerCount() Implements org. Doc from org. Returns the number of rumblers this controller supports | |
| getRumblerName | back to summary |
|---|---|
| public String getRumblerName(int index) Implements org. Doc from org. Returns the name of the specified rumbler
| |
| getRXAxisDeadZone | back to summary |
|---|---|
| public float getRXAxisDeadZone() Implements org. Get the dead zone for the RX axis.
| |
| getRXAxisValue | back to summary |
|---|---|
| public float getRXAxisValue() Implements org. 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() Implements org. Get the dead zone for the RY axis.
| |
| getRYAxisValue | back to summary |
|---|---|
| public float getRYAxisValue() Implements org. 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() Implements org. Get the dead zone for the RZ axis.
| |
| getRZAxisValue | back to summary |
|---|---|
| public float getRZAxisValue() Implements org. 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() Implements org. Get the dead zone for the X axis.
| |
| getXAxisValue | back to summary |
|---|---|
| public float getXAxisValue() Implements org. 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() Implements org. Get the dead zone for the Y axis.
| |
| getYAxisValue | back to summary |
|---|---|
| public float getYAxisValue() Implements org. 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() Implements org. Get the dead zone for the Z axis.
| |
| getZAxisValue | back to summary |
|---|---|
| public float getZAxisValue() Implements org. 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) Implements org. Check if a button is currently pressed
| |
| poll | back to summary |
|---|---|
| public void poll() Implements org. Poll the controller for new data. This will also update events | |
| setDeadZone | back to summary |
|---|---|
| public void setDeadZone(int index, float zone) Implements org. Set the dead zone for the specified axis
| |
| setRumblerStrength | back to summary |
|---|---|
| public void setRumblerStrength(int index, float strength) Implements org. Doc from org. Sets the vibration strength of the specified rumbler
| |
| setRXAxisDeadZone | back to summary |
|---|---|
| public void setRXAxisDeadZone(float zone) Implements org. Set the dead zone for the RX axis
| |
| setRYAxisDeadZone | back to summary |
|---|---|
| public void setRYAxisDeadZone(float zone) Implements org. Set the dead zone for the RY axis
| |
| setRZAxisDeadZone | back to summary |
|---|---|
| public void setRZAxisDeadZone(float zone) Implements org. Set the dead zone for the RZ axis
| |
| setXAxisDeadZone | back to summary |
|---|---|
| public void setXAxisDeadZone(float zone) Implements org. Set the dead zone for the X axis
| |
| setYAxisDeadZone | back to summary |
|---|---|
| public void setYAxisDeadZone(float zone) Implements org. Set the dead zone for the Y axis
| |
| setZAxisDeadZone | back to summary |
|---|---|
| public void setZAxisDeadZone(float zone) Implements org. Set the dead zone for the Z axis
| |