D-Pad von Xbox-Controllern kommt auf macOS als Tasten 11-14 statt Hat - jetzt gemappt (hoch/runter/links/rechts). Hotplug bestaetigt. 63 Tests. MAC-START: Hinweis auf Ladekabel vs. Datenkabel.

This commit is contained in:
Project Bridge committed 2026-11-01 13:13:43 +00:00
1 parent 5237b0a39c
commit 4491fb1524
5 files changed
+51 -2

No files matched your search

+7 -1
View File
@@ -37,12 +37,18 @@ KEY_ACTIONS: dict[int, Action] = {
pygame.K_ESCAPE: Action.BACK,
}
#: Controller-Tasten (Xbox-Layout: 0=A, 1=B, 2=X, 3=Y)
#: Controller-Tasten. Xbox-Layout: 0=A, 1=B, 2=X, 3=Y.
#: Das D-Pad meldet macOS bei Xbox-Controllern nicht als Hat, sondern als
#: Tasten 11-14 (Reihenfolge hoch, runter, links, rechts).
BUTTON_ACTIONS: dict[int, Action] = {
0: Action.PRIMARY,
1: Action.BACK,
2: Action.LEFT,
3: Action.UP,
11: Action.UP,
12: Action.DOWN,
13: Action.LEFT,
14: Action.RIGHT,
}
#: D-Pad, das als Hat gemeldet wird