Skip to content

Commit 56680c4

Browse files
authored
🐛 determine joystick status by pid in resolve_v5_port (#386)
1 parent 4634d44 commit 56680c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pros/cli/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def resolve_v5_port(port: Optional[str], type: str, quiet: bool = False) -> Tupl
268268
return None, False
269269
else:
270270
port = ports[0].device
271-
is_joystick = type == 'user' and 'Controller' in ports[0].description
271+
is_joystick = type == 'user' and ('Controller' in ports[0].description or ports[0].pid == 0x503)
272272
logger(__name__).info('Automatically selected {}'.format(port))
273273
return port, is_joystick
274274

0 commit comments

Comments
 (0)