WinRT+SDL2 multitouch and current resolution |
Re: WinRT+SDL2 multitouch and current resolution |
DLudwig
|
Yes, SDL2's touch API is supported on Windows Phone.
The SDL_Window APIs can be used here. On Windows Phone, the SDL window is treated as if it's always fullscreen, and SDL_GetWindowSize() can be used to get the current resolution, with device orientation being taken into account. SDL_WINDOWEVENT + SDL_WINDOWEVENT_SIZE_CHANGED events will also be sent out when the device's orientation changes. Cheers, -- David L. |
|||||||||||||||
|
Re: WinRT+SDL2 multitouch and current resolution |
DLudwig
|
[quote="DLudwig"]
Minor note/addition/correction: This does include support for multiple, concurrent touches. I.e. SDL's touch API is supported, -and- multi-touch should be working (in SDL2/WinRT). Cheers, -- David L. |
|||||||||||||
|
Meldryt
|
ok "multi" touch works for me when one finger is pressed and moved and another finger is shortly touched down and up.
but when i have two fingers pressed and moved at the same time i never get the event for the second finger. i need something like multigestures with the current coordinates of all fingers, but i couldnt find such thing. |
|||||||||||
|
DLudwig
|
Hmmm, that sounds like a bug in SDL. I'll try to take a look at this within the next week or so, and'll post back details here if I'm able to find anything. Cheers, -- David L. |
|||||||||||||
|
Meldryt
|
here is a litte code example.
after the first touch, the second finger position is never updated
|
|||||||||||||
|
DLudwig
|
Thanks for the sample! I was able to reproduce this on my end, whereby the first-pressed finger would get updated, but not the 2nd, 3rd, etc. I'd get finger-down and finger-up events for all fingers, however finger-move events would only get sent out for the first-pressed finger. I just pushed out a fix to SDL hg, via https://hg.libsdl.org/SDL/rev/1cb6ac648db7 , that seemed to fix it on my end. If you apply it, and still see the same bug, let me know and I'll take another look. Cheers, and thanks much for the info on this! -- David L. |
|||||||||||||
|