Skip to content

Commit

Permalink
determine joystick status by pid in resolve_v5_port
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLuGit committed Feb 24, 2025
1 parent 3e08b4f commit c8cc5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pros/cli/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def resolve_v5_port(port: Optional[str], type: str, quiet: bool = False) -> Tupl
return None, False
else:
port = ports[0].device
is_joystick = type == 'user' and 'Controller' in ports[0].description
is_joystick = type == 'user' and ('Controller' in ports[0].description or ports[0].pid == 0x503)
logger(__name__).info('Automatically selected {}'.format(port))
return port, is_joystick

Expand Down

0 comments on commit c8cc5f8

Please sign in to comment.