From cd1d7c94e91851170afac58facb097b9e96bbfff Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Tue, 9 Jun 2015 21:06:55 +0200 Subject: [PATCH] Wayland: Fixed SDL_GetTouchDevice() returning 0 for the valid device index. The single touch device gets SDL_TouchID 1 (like on Emscripten, iOS and WinRT). --- src/video/wayland/SDL_waylandtouch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandtouch.c b/src/video/wayland/SDL_waylandtouch.c index 98b2214ab5894..3aa8828d25dc9 100644 --- a/src/video/wayland/SDL_waylandtouch.c +++ b/src/video/wayland/SDL_waylandtouch.c @@ -88,7 +88,7 @@ touch_handle_touch(void *data, uint32_t capabilities = flags >> 16; */ - SDL_TouchID deviceId = 0; + SDL_TouchID deviceId = 1; if (SDL_AddTouch(deviceId, "qt_touch_extension") < 0) { SDL_Log("error: can't add touch %s, %d", __FILE__, __LINE__); }