Skip to content

Conversation

@RetroEdit
Copy link
Contributor

See #4550

Check if completed:

@RetroEdit RetroEdit force-pushed the Controller-backend-improve branch from f032f19 to 7ccee8c Compare November 21, 2025 15:54
/// Currently only returns 0 for consoles where all control ports are empty,
/// so returns 1 for (non-linked) Game Boy and similar cases.
/// </summary>
public int PlayerCount
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this used? Would it not be better to change the semantics such that player 0 counts as a player (that is, PlayerCount is usually 1 more than the number of plugged-in gamepads)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll look and consider it. I'm not sure I entirely like the semantics of treating the console itself as a "player" though. At that point, I would also question why one couldn't just get the length of ControlsOrdered directly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well ControlsOrdered relies on PlayerCount to know how many control groups there are. I do think documenting the special behavior is not useful when it should be changed instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants