Pike v8.0 release 1738

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 and 1.0.

Parameter axis

The axis index.

Returns

The current position of the given axis.

See also

num_axes()