Skip to content

Conversation

ccawley2011
Copy link
Contributor

No description provided.

@slouken
Copy link
Collaborator

slouken commented Oct 6, 2025

This needs to be adjusted to match the SDL coding style.

@ccawley2011
Copy link
Contributor Author

This needs to be adjusted to match the SDL coding style.

Could you clarify what needs changing?

{
int i;
for (i = 0; i < players_len; i++) {
if (SDL_GetGamepadID(players[i].gamepad) == gamepad) return i;
Copy link
Contributor

@madebr madebr Oct 7, 2025

Choose a reason for hiding this comment

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

I think the comment is about not always using curly braces, and indentation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, for example, here the code would be:

Suggested change
if (SDL_GetGamepadID(players[i].gamepad) == gamepad) return i;
if (SDL_GetGamepadID(players[i].gamepad) == gamepad) {
return i;
}

@slouken slouken added this to the 3.x milestone Oct 9, 2025
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