public class ControllerAdapter
extends java.lang.Object
implements org.lwjgl.input.Controller
| Constructor and Description |
|---|
ControllerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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
|
int |
getRumblerCount() |
java.lang.String |
getRumblerName(int index) |
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 |
setRumblerStrength(int index,
float strength) |
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
|
public java.lang.String getName()
getName in interface org.lwjgl.input.Controllerpublic int getIndex()
getIndex in interface org.lwjgl.input.Controllerpublic int getButtonCount()
getButtonCount in interface org.lwjgl.input.Controllerpublic java.lang.String getButtonName(int index)
getButtonName in interface org.lwjgl.input.Controllerindex - The index of the button whose name should be retrievedpublic boolean isButtonPressed(int index)
isButtonPressed in interface org.lwjgl.input.Controllerindex - The button to checkpublic void poll()
poll in interface org.lwjgl.input.Controllerpublic float getPovX()
getPovX in interface org.lwjgl.input.Controllerpublic float getPovY()
getPovY in interface org.lwjgl.input.Controllerpublic float getDeadZone(int index)
getDeadZone in interface org.lwjgl.input.Controllerindex - The index of the axis for which to retrieve the dead zonepublic void setDeadZone(int index,
float zone)
setDeadZone in interface org.lwjgl.input.Controllerindex - The index of hte axis for which to set the dead zonezone - The dead zone to use for the specified axispublic int getAxisCount()
getAxisCount in interface org.lwjgl.input.Controllerpublic java.lang.String getAxisName(int index)
getAxisName in interface org.lwjgl.input.Controllerindex - The index of the axis whose name should be retrievedpublic float getAxisValue(int index)
getAxisValue in interface org.lwjgl.input.Controllerindex - The index of axis to be readpublic float getXAxisValue()
getXAxisValue in interface org.lwjgl.input.Controllerpublic float getXAxisDeadZone()
getXAxisDeadZone in interface org.lwjgl.input.Controllerpublic void setXAxisDeadZone(float zone)
setXAxisDeadZone in interface org.lwjgl.input.Controllerzone - The dead zone to use for the X axispublic float getYAxisValue()
getYAxisValue in interface org.lwjgl.input.Controllerpublic float getYAxisDeadZone()
getYAxisDeadZone in interface org.lwjgl.input.Controllerpublic void setYAxisDeadZone(float zone)
setYAxisDeadZone in interface org.lwjgl.input.Controllerzone - The dead zone to use for the Y axispublic float getZAxisValue()
getZAxisValue in interface org.lwjgl.input.Controllerpublic float getZAxisDeadZone()
getZAxisDeadZone in interface org.lwjgl.input.Controllerpublic void setZAxisDeadZone(float zone)
setZAxisDeadZone in interface org.lwjgl.input.Controllerzone - The dead zone to use for the Z axispublic float getRXAxisValue()
getRXAxisValue in interface org.lwjgl.input.Controllerpublic float getRXAxisDeadZone()
getRXAxisDeadZone in interface org.lwjgl.input.Controllerpublic void setRXAxisDeadZone(float zone)
setRXAxisDeadZone in interface org.lwjgl.input.Controllerzone - The dead zone to use for the RX axispublic float getRYAxisValue()
getRYAxisValue in interface org.lwjgl.input.Controllerpublic float getRYAxisDeadZone()
getRYAxisDeadZone in interface org.lwjgl.input.Controllerpublic void setRYAxisDeadZone(float zone)
setRYAxisDeadZone in interface org.lwjgl.input.Controllerzone - The dead zone to use for the RY axispublic float getRZAxisValue()
getRZAxisValue in interface org.lwjgl.input.Controllerpublic float getRZAxisDeadZone()
getRZAxisDeadZone in interface org.lwjgl.input.Controllerpublic void setRZAxisDeadZone(float zone)
setRZAxisDeadZone in interface org.lwjgl.input.Controllerzone - The dead zone to use for the RZ axispublic int getRumblerCount()
getRumblerCount in interface org.lwjgl.input.Controllerpublic java.lang.String getRumblerName(int index)
getRumblerName in interface org.lwjgl.input.Controllerpublic void setRumblerStrength(int index,
float strength)
setRumblerStrength in interface org.lwjgl.input.ControllerCopyright © 2002-2010 lwjgl.org. All Rights Reserved.