Skip to content

Conversation

endrift
Copy link
Contributor

@endrift endrift commented Sep 25, 2025

Adds support for reading user calibration data done on a Switch 2. As far as I can tell there's no calibration data for the triggers, so this is just the two analog sticks.

@slouken slouken merged commit ed2cdce into libsdl-org:main Sep 25, 2025
33 of 42 checks passed
@slouken
Copy link
Collaborator

slouken commented Sep 25, 2025

Merged, thanks!

@endrift endrift deleted the ns2 branch September 25, 2025 01:22
} else {
res = RecvBulkData(ctx, calibration_data, sizeof(calibration_data));
if (res < 0) {
SDL_LogWarn(SDL_LOG_CATEGORY_INPUT, "Couldn't request user calibration data: %d", res);
Copy link
Contributor

@eloj eloj Sep 25, 2025

Choose a reason for hiding this comment

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

I think it's supposed to be s/request/read/

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, fixed!

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