1 /* $OpenBSD: mousecfg.h,v 1.5 2023/07/02 21:44:04 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_mtbuttons; 21 extern struct wsmouse_parameters cfg_scaling; 22 extern struct wsmouse_parameters cfg_edges; 23 extern struct wsmouse_parameters cfg_swapsides; 24 extern struct wsmouse_parameters cfg_disable; 25 extern struct wsmouse_parameters cfg_revscroll; 26 extern struct wsmouse_parameters cfg_param; 27 extern int cfg_touchpad; 28 29 int mousecfg_init(int, const char **); 30 int mousecfg_get_field(struct wsmouse_parameters *); 31 int mousecfg_put_field(int, struct wsmouse_parameters *); 32 void mousecfg_pr_field(struct wsmouse_parameters *); 33 void mousecfg_rd_field(struct wsmouse_parameters *, char *); 34