1
/***************************************************************************
4
* Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
**************************************************************************/
22
#ifndef CAPABILITIES_H
23
#define CAPABILITIES_H
29
struct input_id devid;
31
int has_left, has_middle, has_right;
32
int has_mtdata, has_ibt;
34
int has_abs[MT_ABS_SIZE];
35
struct input_absinfo slot;
36
struct input_absinfo abs[MT_ABS_SIZE];
39
int read_capabilities(struct Capabilities *cap, int fd);
40
int get_cap_xsize(const struct Capabilities *cap);
41
int get_cap_ysize(const struct Capabilities *cap);
42
int get_cap_wsize(const struct Capabilities *cap);
44
int get_cap_xmid(const struct Capabilities *cap);
45
int get_cap_ymid(const struct Capabilities *cap);
47
int get_cap_xflip(const struct Capabilities *cap, int x);
48
int get_cap_yflip(const struct Capabilities *cap, int y);
50
void output_capabilities(const struct Capabilities *cap);