mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
113 lines
2.7 KiB
ReStructuredText
113 lines
2.7 KiB
ReStructuredText
.. pybricks-requirements::
|
|
|
|
Button
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
.. class:: Button
|
|
|
|
.. rubric:: Remote and hub buttons
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.LEFT_MINUS
|
|
:annotation:
|
|
|
|
Powered Up Remote only.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.LEFT_PLUS
|
|
:annotation:
|
|
|
|
Powered Up Remote only.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.RIGHT_MINUS
|
|
:annotation:
|
|
|
|
Powered Up Remote only.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.RIGHT_PLUS
|
|
:annotation:
|
|
|
|
Powered Up Remote only.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.CENTER
|
|
:annotation:
|
|
|
|
Powered Up Remote (green button) or hub power button.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.LEFT
|
|
:annotation:
|
|
|
|
Powered Up Remote (left red button) and Prime/Inventor Hub (left button).
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.RIGHT
|
|
:annotation:
|
|
|
|
Powered Up Remote (right red button) and Prime/Inventor Hub (right button).
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.BLUETOOTH
|
|
:annotation:
|
|
|
|
Prime/Inventor Hub button with Bluetooth icon.
|
|
|
|
.. rubric:: Xbox controller buttons
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.A
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.B
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.X
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.Y
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.LB
|
|
:annotation:
|
|
|
|
The left bumper.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.RB
|
|
:annotation:
|
|
|
|
The right bumper.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.LJ
|
|
:annotation:
|
|
|
|
Pressing the left joystick.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.RJ
|
|
:annotation:
|
|
|
|
Pressing the right joystick.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.GUIDE
|
|
:annotation:
|
|
|
|
The Xbox button in the center of the controller.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.MENU
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.UPLOAD
|
|
:annotation:
|
|
|
|
Only available on newer Xbox controllers.
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.VIEW
|
|
:annotation:
|
|
|
|
.. rubric:: Xbox Elite Series 2 controller paddles
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.P1
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.P2
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.P3
|
|
:annotation:
|
|
|
|
.. autoattribute:: pybricks.parameters.Button.P4
|
|
:annotation:
|