public class ScaledRadialDeadZone extends java.lang.Object implements DeadZone
RadialDeadZone
. See
Doing Thumbstick Dead Zones Right.Constructor and Description |
---|
ScaledRadialDeadZone() |
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)
DeadZone
public void updateY(float y)
DeadZone
public float getX()
DeadZone
public float getY()
DeadZone
public float getDeadZone()
DeadZone
getDeadZone
in interface DeadZone
public void setDeadZone(float deadZone)
DeadZone
setDeadZone
in interface DeadZone
deadZone
- The threshold