Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch #30

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Touch #30

merged 1 commit into from
Oct 19, 2024

Conversation

revmischa
Copy link
Owner

https://github.com/libsdl-org/SDL/blob/main/docs/README-migration.md#sdl_touchh

SDL_GetTouchName is replaced with SDL_GetTouchDeviceName(), which takes an SDL_TouchID instead of an index.

SDL_TouchID and SDL_FingerID are now Uint64 with 0 being an invalid value.

Rather than iterating over touch devices using an index, there is a new function SDL_GetTouchDevices() to get the available devices.

Rather than iterating over touch fingers using an index, there is a new function SDL_GetTouchFingers() to get the current set of active fingers.

The following functions have been removed:

SDL_GetNumTouchDevices() - replaced with SDL_GetTouchDevices()
SDL_GetNumTouchFingers() - replaced with SDL_GetTouchFingers()
SDL_GetTouchDevice() - replaced with SDL_GetTouchDevices()
SDL_GetTouchFinger() - replaced with SDL_GetTouchFingers()

@revmischa revmischa merged commit c2c9355 into master Oct 19, 2024
0 of 34 checks passed
@revmischa revmischa deleted the touch branch October 19, 2024 21:53
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.

1 participant