src/events/SDL_mouse.c
changeset 12687 712d84dd14c9
parent 12651 d188272453ce
child 12688 cc45bcb16ef2
     1.1 --- a/src/events/SDL_mouse.c	Wed Apr 03 10:14:42 2019 +0200
     1.2 +++ b/src/events/SDL_mouse.c	Thu Apr 04 15:19:00 2019 +0200
     1.3 @@ -298,10 +298,6 @@
     1.4      int xrel;
     1.5      int yrel;
     1.6  
     1.7 -    if (mouseID == SDL_TOUCH_MOUSEID && !mouse->touch_mouse_events) {
     1.8 -        return 0;
     1.9 -    }
    1.10 -
    1.11      if (mouseID != SDL_TOUCH_MOUSEID && mouse->relative_mode_warp) {
    1.12          int center_x = 0, center_y = 0;
    1.13          SDL_GetWindowSize(window, &center_x, &center_y);
    1.14 @@ -447,10 +443,6 @@
    1.15      Uint32 type;
    1.16      Uint32 buttonstate = mouse->buttonstate;
    1.17  
    1.18 -    if (mouseID == SDL_TOUCH_MOUSEID && !mouse->touch_mouse_events) {
    1.19 -        return 0;
    1.20 -    }
    1.21 -
    1.22      /* Figure out which event to perform */
    1.23      switch (state) {
    1.24      case SDL_PRESSED:
    1.25 @@ -520,7 +512,7 @@
    1.26      if (window && state == SDL_RELEASED) {
    1.27          SDL_UpdateMouseFocus(window, mouse->x, mouse->y, buttonstate);
    1.28      }
    1.29 -    
    1.30 +
    1.31      return posted;
    1.32  }
    1.33