]> diplodocus.org Git - xorg-xinput/blobdiff - src/xinput.h
XSync the display before jumping in the grab code.
[xorg-xinput] / src / xinput.h
index 4e0f345..4b68090 100644 (file)
@@ -27,6 +27,9 @@
 
 #include <X11/Xlib.h>
 #include <X11/extensions/XInput.h>
+#ifdef HAVE_XI2
+#include <X11/extensions/XInput2.h>
+#endif
 #include <X11/Xutil.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -44,7 +47,10 @@ find_device_info(
                 char           *name,
                 Bool           only_extended
                 );
+int
+xi2_find_device_id(Display *display, char *name);
 
+int xinput_version(Display* display);
 
 #define DECLARE(name) \
     int (name) ( \
@@ -71,6 +77,7 @@ DECLARE(remove_master);
 DECLARE(change_attachment);
 DECLARE(float_device);
 DECLARE(set_clientpointer);
+DECLARE(test_xi2);
 DECLARE(list_props);
 DECLARE(set_int_prop);
 DECLARE(set_float_prop);