Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
philippwiesemann committed Jun 9, 2015
1 parent 5d6aa08 commit cd1d7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/wayland/SDL_waylandtouch.c
Expand Up @@ -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__);
}
Expand Down

0 comments on commit cd1d7c9

Please sign in to comment.