mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-27 19:57:02 +00:00
pybricks.iodevices: Add XboxController.
This commit is contained in:
@@ -108,6 +108,7 @@ def test_from_pybricks_iodevices_import():
|
||||
"LWP3Device",
|
||||
"PUPDevice",
|
||||
"UARTDevice",
|
||||
"XboxController",
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -253,9 +253,7 @@ METHOD_PARAMS = [
|
||||
),
|
||||
pytest.param("pybricks.hubs", "MoveHub", "battery.voltage", [([], "int")]),
|
||||
pytest.param("pybricks.hubs", "MoveHub", "battery.current", [([], "int")]),
|
||||
pytest.param(
|
||||
"pybricks.hubs", "MoveHub", "button.pressed", [([], "Collection[Button]")]
|
||||
),
|
||||
pytest.param("pybricks.hubs", "MoveHub", "button.pressed", [([], "Set[Button]")]),
|
||||
pytest.param(
|
||||
"pybricks.hubs",
|
||||
"MoveHub",
|
||||
@@ -290,9 +288,7 @@ METHOD_PARAMS = [
|
||||
),
|
||||
pytest.param("pybricks.hubs", "CityHub", "battery.voltage", [([], "int")]),
|
||||
pytest.param("pybricks.hubs", "CityHub", "battery.current", [([], "int")]),
|
||||
pytest.param(
|
||||
"pybricks.hubs", "CityHub", "button.pressed", [([], "Collection[Button]")]
|
||||
),
|
||||
pytest.param("pybricks.hubs", "CityHub", "button.pressed", [([], "Set[Button]")]),
|
||||
pytest.param(
|
||||
"pybricks.hubs",
|
||||
"CityHub",
|
||||
@@ -358,7 +354,7 @@ METHOD_PARAMS = [
|
||||
pytest.param("pybricks.hubs", "TechnicHub", "battery.voltage", [([], "int")]),
|
||||
pytest.param("pybricks.hubs", "TechnicHub", "battery.current", [([], "int")]),
|
||||
pytest.param(
|
||||
"pybricks.hubs", "TechnicHub", "button.pressed", [([], "Collection[Button]")]
|
||||
"pybricks.hubs", "TechnicHub", "button.pressed", [([], "Set[Button]")]
|
||||
),
|
||||
pytest.param(
|
||||
"pybricks.hubs",
|
||||
@@ -423,9 +419,7 @@ METHOD_PARAMS = [
|
||||
"display.text",
|
||||
[(["text: str", "on: Number=500", "off: Number=50"], "None")],
|
||||
),
|
||||
pytest.param(
|
||||
"pybricks.hubs", "PrimeHub", "buttons.pressed", [([], "Collection[Button]")]
|
||||
),
|
||||
pytest.param("pybricks.hubs", "PrimeHub", "buttons.pressed", [([], "Set[Button]")]),
|
||||
pytest.param("pybricks.hubs", "PrimeHub", "imu.up", [([], "Side")]),
|
||||
pytest.param("pybricks.hubs", "PrimeHub", "imu.tilt", [([], "Tuple[int, int]")]),
|
||||
pytest.param(
|
||||
@@ -512,7 +506,7 @@ METHOD_PARAMS = [
|
||||
[(["colors: Collection[Color]", "interval: Number"], "None")],
|
||||
),
|
||||
pytest.param(
|
||||
"pybricks.hubs", "EssentialHub", "button.pressed", [([], "Collection[Button]")]
|
||||
"pybricks.hubs", "EssentialHub", "button.pressed", [([], "Set[Button]")]
|
||||
),
|
||||
pytest.param("pybricks.hubs", "EssentialHub", "imu.up", [([], "Side")]),
|
||||
pytest.param(
|
||||
@@ -922,7 +916,7 @@ METHOD_PARAMS = [
|
||||
"pybricks.pupdevices",
|
||||
"Remote",
|
||||
"buttons.pressed",
|
||||
[([], "Collection[Button]")],
|
||||
[([], "Set[Button]")],
|
||||
),
|
||||
pytest.param("pybricks.tools", "StopWatch", "time", [([], "int")]),
|
||||
pytest.param("pybricks.tools", "StopWatch", "pause", [([], "None")]),
|
||||
|
||||
Reference in New Issue
Block a user