Method SDL.Joystick()->get_axis()
- Method get_axis
float
get_axis(int
axis
)- Description
Returns the current position of the given axis.
The returned value is a float between
-1.0
and1.0
.- Parameter
axis
The axis index.
- Returns
The current position of the given axis.
- See also