chiark / gitweb /
Button zones: Export bottom_edge_zones in MTRACK_PROP_BUTTON_EMULATE_SETTINGS
[xf86-input-mtrack.git] / include / mtouch.h
1 /***************************************************************************
2  *
3  * Multitouch X driver
4  * Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se>
5  * Copyright (C) 2011 Ryan Bourgeois <bluedragonx@gmail.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20  *
21  **************************************************************************/
22
23 #ifndef MTOUCH_H
24 #define MTOUCH_H
25
26 #include "common.h"
27 #include "capabilities.h"
28 #include "hwstate.h"
29 #include "mtstate.h"
30 #include "mconfig.h"
31 #include "gestures.h"
32
33 struct MTouch {
34         int fd;
35         struct mtdev dev;
36         struct Capabilities caps;
37         struct HWState hs;
38         struct MTState state;
39         struct MConfig cfg;
40         struct Gestures gs;
41 };
42
43 int mtouch_configure(struct MTouch* mt, int fd);
44 int mtouch_open(struct MTouch* mt, int fd);
45 int mtouch_close(struct MTouch* mt);
46
47 int mtouch_read(struct MTouch* mt);
48 int mtouch_delayed(struct MTouch* mt);
49
50 #endif