We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba340a2 commit 5669bb9Copy full SHA for 5669bb9
README.rst
@@ -136,6 +136,22 @@ remote controls, or the multimedia keys on certain keyboards.
136
# Pause or resume playback.
137
cc.send(ConsumerControlCode.PLAY_PAUSE)
138
139
+The ``Gamepad`` class emulates a two-joystick gamepad with 16 buttons.
140
+
141
+*New in CircuitPython 3.0.*
142
143
+.. code-block:: python
144
145
+ from adafruit_hid.gamepad import Gamepad
146
147
+ gp = Gamepad()
148
149
+ # Click gamepad buttons.
150
+ gp.click_buttons(1, 7)
151
152
+ # Move joysticks.
153
+ gp.move_joysticks(x=2, y=0, z=-20)
154
155
Contributing
156
============
157
0 commit comments