examples/pan-action: Enable the xinput backend to test touch events

This commit is contained in:
Emanuele Aina 2012-10-01 10:57:07 +02:00
parent b94595f5f7
commit 04ca3d1af3

View File

@ -1,6 +1,9 @@
#include <stdlib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <clutter/clutter.h>
#ifdef CLUTTER_WINDOWING_X11
#include <clutter/x11/clutter-x11.h>
#endif
static ClutterActor *
create_content_actor (void)
@ -115,6 +118,10 @@ main (int argc, char *argv[])
{
ClutterActor *stage, *scroll, *info;
#ifdef CLUTTER_WINDOWING_X11
clutter_x11_enable_xinput ();
#endif
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
return EXIT_FAILURE;