src/events/SDL_mouse.c
changeset 12855 ac0c65535817
parent 12854 d7d64c1a3969
child 12886 6f8f744a09dc
     1.1 --- a/src/events/SDL_mouse.c	Thu Jun 13 01:57:13 2019 -0400
     1.2 +++ b/src/events/SDL_mouse.c	Thu Jun 13 21:31:03 2019 -0400
     1.3 @@ -103,11 +103,7 @@
     1.4      if (hint && (*hint == '0' || SDL_strcasecmp(hint, "false") == 0)) {
     1.5          mouse->touch_mouse_events = SDL_FALSE;
     1.6      } else {
     1.7 -#if defined(__MACOSX__)  /* macOS synthesizes its own events for this. */
     1.8 -        mouse->touch_mouse_events = SDL_FALSE;
     1.9 -#else
    1.10          mouse->touch_mouse_events = SDL_TRUE;
    1.11 -#endif
    1.12      }
    1.13  }
    1.14  
    1.15 @@ -387,11 +383,13 @@
    1.16          mouse->has_position = SDL_TRUE;
    1.17      }
    1.18  
    1.19 +#ifndef __MACOSX__  /* all your trackpad input would lack relative motion when not dragging in this case. */
    1.20      /* Ignore relative motion positioning the first touch */
    1.21      if (mouseID == SDL_TOUCH_MOUSEID && !mouse->buttonstate) {
    1.22          xrel = 0;
    1.23          yrel = 0;
    1.24      }
    1.25 +#endif
    1.26  
    1.27      /* Update internal mouse coordinates */
    1.28      if (!mouse->relative_mode) {