xref: /openbsd/sbin/wsconsctl/mousecfg.h (revision 76d0caae)
1 /* $OpenBSD: mousecfg.h,v 1.4 2019/08/19 21:42:33 bru Exp $ */
2 
3 /*
4  * Copyright (c) 2017 Ulf Brosziewski
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 extern struct wsmouse_parameters cfg_tapping;
20 extern struct wsmouse_parameters cfg_scaling;
21 extern struct wsmouse_parameters cfg_edges;
22 extern struct wsmouse_parameters cfg_swapsides;
23 extern struct wsmouse_parameters cfg_disable;
24 extern struct wsmouse_parameters cfg_revscroll;
25 extern struct wsmouse_parameters cfg_param;
26 extern int cfg_touchpad;
27 
28 int mousecfg_init(int, const char **);
29 int mousecfg_get_field(struct wsmouse_parameters *);
30 int mousecfg_put_field(int, struct wsmouse_parameters *);
31 void mousecfg_pr_field(struct wsmouse_parameters *);
32 void mousecfg_rd_field(struct wsmouse_parameters *, char *);
33