]> diplodocus.org Git - xorg-xinput/blobdiff - src/xinput.c
xinput 1.4.0
[xorg-xinput] / src / xinput.c
index ac9c65f99bc988fa3f7fec8fa45190062c0f12ff..1207f9d62cdc988786889b332076b5ad86055b8d 100644 (file)
@@ -53,6 +53,10 @@ static entry drivers[] =
      "<device name> <feedback id> <value>",
      set_integer_feedback
     },
+    {"get-button-map",
+     "<device name>",
+     get_button_map
+    },
     {"set-button-map",
      "<device name> <map button 1> [<map button 2> [...]]",
      set_button_map
@@ -102,6 +106,7 @@ static entry drivers[] =
       "<window> <device>",
       set_clientpointer
     },
+#endif
     { "list-props",
       "<device> [<device> ...]",
       list_props
@@ -110,11 +115,22 @@ static entry drivers[] =
       "<device> <property> <format (8, 16, 32)> <val> [<val> ...]",
       set_int_prop
     },
+    { "set-float-prop",
+      "<device> <property> <val> [<val> ...]",
+      set_float_prop
+    },
+    { "set-atom-prop",
+      "<device> <property> <val> [<val> ...]",
+      set_atom_prop
+    },
     { "watch-props",
       "<device>",
       watch_props
     },
-#endif
+    { "delete-prop",
+      "<device> <property>",
+      delete_prop
+    },
     {0, 0, 0
     }
 };
@@ -228,7 +244,7 @@ main(int argc, char * argv[])
        if (strcmp(driver->func_name, func) == 0) {
            int r = (*driver->func)(display, argc-2, argv+2,
                                    driver->func_name, driver->arg_desc);
-           XFlush(display);
+           XSync(display, False);
            return r;
        }
        driver++;