libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
8.47k stars 1.59k forks source link

[SDL2 Vita] Wrong touch IDs gets assigned to touch devices #9830

Open Wohlstand opened 2 weeks ago

Wohlstand commented 2 weeks ago

Hello!

I do see that at the SDL2 touch device IDs gets assigned incorrectly: one of IDs had been assigned as 0 that results an invalid behaviour: the SDL_GetTouchDevice() claims the 0 is an invalid device, but in a case of Vita's code it's a fully valid device.

Anyway, on SDL3 side I see these device ID codes are valid.

slouken commented 2 weeks ago

Please feel free to submit a PR to fix this, thanks!

Wohlstand commented 2 weeks ago

I'll do, but right now I'm out of home, first off I should test out this on my end. I'll be back when I get my home.