Skip to content

Commit a2dab0c

Browse files
committed
Add method to access connected controllers
1 parent 06fdf14 commit a2dab0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arcade/experimental/controller_window.py

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def __init__(self, *args, **kwargs):
6969
super().__init__(*args, **kwargs)
7070
self.cb = _WindowControllerBridge(self)
7171

72+
def get_controllers(self) -> list[Controller]:
73+
"""Return a list of connected controllers."""
74+
return self.cb.cm.get_controllers()
75+
7276
# Controller event mapping
7377
def on_stick_motion(self, controller: Controller, name, value):
7478
pass

0 commit comments

Comments
 (0)