diff --git sbin/wsconsctl/mouse.c sbin/wsconsctl/mouse.c
index e04642dacbc..0f1594e17e0 100644
--- sbin/wsconsctl/mouse.c
+++ sbin/wsconsctl/mouse.c
@@ -61,6 +61,7 @@ struct field mouse_field_tab[] = {
     { "tp.swapsides",          &cfg_swapsides, FMT_CFG,        FLG_NORDBACK },
     { "tp.disable",            &cfg_disable,   FMT_CFG,        FLG_NORDBACK },
     { "tp.edges",              &cfg_edges,     FMT_CFG,        FLG_NORDBACK },
+    { "tp.deceleration",       &cfg_decel,     FMT_CFG,        FLG_NORDBACK },
     { "tp.param",              &cfg_param,     FMT_CFG,        FLG_WRONLY },
     /* Add an alias.  This field is valid for all wsmouse devices. */
     { "param",                 &cfg_param,     FMT_CFG,        FLG_WRONLY },
diff --git sbin/wsconsctl/mousecfg.c sbin/wsconsctl/mousecfg.c
index 6d52bcbfc9c..6162df5c229 100644
--- sbin/wsconsctl/mousecfg.c
+++ sbin/wsconsctl/mousecfg.c
@@ -109,6 +109,12 @@ struct wsmouse_parameters cfg_revscroll = {
        1
 };
 
+struct wsmouse_parameters cfg_decel = {
+       (struct wsmouse_param[]) {
+           { WSMOUSECFG_DECELERATION, 0 }, },
+       1
+};
+
 struct wsmouse_parameters cfg_param = {
        (struct wsmouse_param[]) {
            { -1, 0 },
diff --git sbin/wsconsctl/mousecfg.h sbin/wsconsctl/mousecfg.h
index 8e99139d280..97ef153fcb3 100644
--- sbin/wsconsctl/mousecfg.h
+++ sbin/wsconsctl/mousecfg.h
@@ -22,6 +22,7 @@ extern struct wsmouse_parameters cfg_edges;
 extern struct wsmouse_parameters cfg_swapsides;
 extern struct wsmouse_parameters cfg_disable;
 extern struct wsmouse_parameters cfg_revscroll;
+extern struct wsmouse_parameters cfg_decel;
 extern struct wsmouse_parameters cfg_param;
 extern int cfg_touchpad;
 

Reply via email to