Control Interactive Content with a Gamepad

Plug in a gamepad and immediately manipulate interactive content with its controls.

Make interactive content

Make an interactive polygon with controls for the size and number of sides:

In[1]:=
Click for copyable input
Out[1]=PlayAnimation

Connect a gamepad

Plug in a wired gamepad or connect to a wireless one:

Control the interactive content from the gamepad

Select the cell bracket of the interactive graphic. Operate the gamepad controls to change the polygon:

Notes

Gamepad controls are assigned to interactive controls in the order they appear in the interface. To specify the mapping explicitly, precede the interactive controls with the names of the gamepad controls:
In[3]:=
Click for copyable input
To suppress the interactive controls and Manipulate frame, use ControllerManipulate:
In[4]:=
Click for copyable input
Out[4]=
Three-dimensional graphics can be rotated with gamepad controls by selecting the cell bracket of the graphic: