public interface SensorJoystickAxis
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ORIENTATION_X |
static java.lang.String |
ORIENTATION_Y |
static java.lang.String |
ORIENTATION_Z |
Modifier and Type | Method and Description |
---|---|
void |
calibrateCenter()
Calibrates the axis to the current value.
|
float |
getMaxRawValue()
Returns the current maximum raw sensor value that is being used to scale
the joystick axis value.
|
void |
setMaxRawValue(float maxRawValue)
Method to allow users to set the raw sensor value that represents
the maximum joystick axis value.
|
static final java.lang.String ORIENTATION_X
static final java.lang.String ORIENTATION_Y
static final java.lang.String ORIENTATION_Z
void calibrateCenter()
void setMaxRawValue(float maxRawValue)
maxRawValue
- Raw sensor value that will be used to scale joystick axis valuefloat getMaxRawValue()