🧪 Version 0.3.1 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_joysticks

Get available joysticks. This is part of the reference section.

Purpose

Get all available joysticks on the system or None if joysticks are not supported on the platform.

Snippet

Get the current position on the first axis of the first joystick.
joysticks = sketch.get_joysticks()
first_joystick = joysticks[0]
first_joystick.get_axis(0)

Availability

Not yet available. Planned for future release.

See also