🧪 Version 0.2.2 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for get_input_axes_available

Get the number of input axes on a joystick-like device. This is part of the reference section.

Purpose

Get the available input axes supported on a joystick-like device where 'ball0.x' would, for example, refer to the x axis of the first trackball found.

Snippet

Get the number of axes on the first joystick found.
joysticks = sketch.get_joysticks()
first_joystick = joysticks[0]
num_axes = first_joystick.get_input_axes_available()

Availability

Not yet available. Planned for future release.

See also