mirror of https://github.com/encounter/SDL.git
Ignore unused mir event functions, need headers in Ubuntu 14.04 to use them.
This commit is contained in:
parent
2298ed170f
commit
8938c2b5db
|
@ -116,6 +116,13 @@ HandleMouseButton(SDL_Window* sdl_window, Uint8 state, MirMotionButton button_st
|
||||||
SDL_SendMouseButton(sdl_window, 0, state, sdl_button);
|
SDL_SendMouseButton(sdl_window, 0, state, sdl_button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
HandleMouseMotion(SDL_Window* sdl_window, int x, int y)
|
||||||
|
{
|
||||||
|
SDL_SendMouseMotion(sdl_window, 0, 0, x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if 0 /* !!! FIXME: needs a newer set of dev headers than Ubuntu 13.10 is shipping atm. */
|
||||||
static void
|
static void
|
||||||
HandleTouchPress(int device_id, int source_id, SDL_bool down, float x, float y, float pressure)
|
HandleTouchPress(int device_id, int source_id, SDL_bool down, float x, float y, float pressure)
|
||||||
{
|
{
|
||||||
|
@ -128,12 +135,6 @@ HandleTouchMotion(int device_id, int source_id, float x, float y, float pressure
|
||||||
SDL_SendTouchMotion(device_id, source_id, x, y, pressure);
|
SDL_SendTouchMotion(device_id, source_id, x, y, pressure);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
HandleMouseMotion(SDL_Window* sdl_window, int x, int y)
|
|
||||||
{
|
|
||||||
SDL_SendMouseMotion(sdl_window, 0, 0, x, y);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HandleMouseScroll(SDL_Window* sdl_window, int hscroll, int vscroll)
|
HandleMouseScroll(SDL_Window* sdl_window, int hscroll, int vscroll)
|
||||||
{
|
{
|
||||||
|
@ -181,6 +182,7 @@ HandleTouchEvent(MirMotionEvent const motion, int cord_index, SDL_Window* sdl_wi
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HandleMouseEvent(MirMotionEvent const motion, int cord_index, SDL_Window* sdl_window)
|
HandleMouseEvent(MirMotionEvent const motion, int cord_index, SDL_Window* sdl_window)
|
||||||
|
|
Loading…
Reference in New Issue