public class AxialDeadZone extends java.lang.Object implements DeadZone
| Constructor and Description |
|---|
AxialDeadZone() |
| Modifier and Type | Method and Description |
|---|---|
DeadZone |
copy()
Creates a copy of this
DeadZone |
float |
getDeadZone()
Returns the dead zone threshold
|
float |
getX()
Returns the x axis value with the dead zone applied
|
float |
getY()
Returns the y axis value with the dead zone applied
|
void |
setDeadZone(float deadZone)
Sets the dead zone threshold
|
void |
updateX(float x)
Updates the x axis value
|
void |
updateY(float y)
Updates the y axis value
|
public void updateX(float x)
DeadZonepublic void updateY(float y)
DeadZonepublic float getX()
DeadZonepublic float getY()
DeadZonepublic float getDeadZone()
DeadZonegetDeadZone in interface DeadZonepublic void setDeadZone(float deadZone)
DeadZonesetDeadZone in interface DeadZonedeadZone - The threshold