getAxisSmall method
Get the value of axis
, as a number between -1.0 and 1.0.
Implementation
double getAxisSmall(final GameControllerAxis axis) {
final value = getAxis(axis);
if (value < 0) {
return value / 32768;
} else if (value > 0) {
return value / 32767;
} else {
return 0.0;
}
}