Ignore unused mir event functions, need headers in Ubuntu 14.04 to use them.
authorBrandon Schaefer
Tue, 25 Mar 2014 15:24:43 -0700
changeset 8682a31313cfa891
parent 8681 b03d6a506750
child 8683 79527cb2cf8a
Ignore unused mir event functions, need headers in Ubuntu 14.04 to use them.
src/video/mir/SDL_mirevents.c
     1.1 --- a/src/video/mir/SDL_mirevents.c	Tue Mar 25 15:18:18 2014 -0700
     1.2 +++ b/src/video/mir/SDL_mirevents.c	Tue Mar 25 15:24:43 2014 -0700
     1.3 @@ -117,6 +117,13 @@
     1.4  }
     1.5  
     1.6  static void
     1.7 +HandleMouseMotion(SDL_Window* sdl_window, int x, int y)
     1.8 +{
     1.9 +    SDL_SendMouseMotion(sdl_window, 0, 0, x, y);
    1.10 +}
    1.11 +
    1.12 +#if 0  /* !!! FIXME: needs a newer set of dev headers than Ubuntu 13.10 is shipping atm. */
    1.13 +static void
    1.14  HandleTouchPress(int device_id, int source_id, SDL_bool down, float x, float y, float pressure)
    1.15  {
    1.16      SDL_SendTouch(device_id, source_id, down, x, y, pressure);
    1.17 @@ -129,12 +136,6 @@
    1.18  }
    1.19  
    1.20  static void
    1.21 -HandleMouseMotion(SDL_Window* sdl_window, int x, int y)
    1.22 -{
    1.23 -    SDL_SendMouseMotion(sdl_window, 0, 0, x, y);
    1.24 -}
    1.25 -
    1.26 -static void
    1.27  HandleMouseScroll(SDL_Window* sdl_window, int hscroll, int vscroll)
    1.28  {
    1.29      SDL_SendMouseWheel(sdl_window, 0, hscroll, vscroll);
    1.30 @@ -181,6 +182,7 @@
    1.31              break;
    1.32      }
    1.33  }
    1.34 +#endif
    1.35  
    1.36  static void
    1.37  HandleMouseEvent(MirMotionEvent const motion, int cord_index, SDL_Window* sdl_window)