~ubuntu-branches/ubuntu/trusty/xf86-input-mtrack-lts-utopic/trusty-proposed

« back to all changes in this revision

Viewing changes to include/capabilities.h

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2015-01-22 10:02:01 UTC
  • Revision ID: package-import@ubuntu.com-20150122100201-9lz7tgip6vq5k2pm
Tags: upstream-0.3.0
ImportĀ upstreamĀ versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *
 
3
 * Multitouch X driver
 
4
 * Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se>
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 *
 
20
 **************************************************************************/
 
21
 
 
22
#ifndef CAPABILITIES_H
 
23
#define CAPABILITIES_H
 
24
 
 
25
#include "common.h"
 
26
#include "button.h"
 
27
 
 
28
struct Capabilities {
 
29
        struct input_id devid;
 
30
        char devname[32];
 
31
        int has_left, has_middle, has_right;
 
32
        int has_mtdata, has_ibt;
 
33
        int has_slot;
 
34
        int has_abs[MT_ABS_SIZE];
 
35
        struct input_absinfo slot;
 
36
        struct input_absinfo abs[MT_ABS_SIZE];
 
37
};
 
38
 
 
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);
 
43
 
 
44
int get_cap_xmid(const struct Capabilities *cap);
 
45
int get_cap_ymid(const struct Capabilities *cap);
 
46
 
 
47
int get_cap_xflip(const struct Capabilities *cap, int x);
 
48
int get_cap_yflip(const struct Capabilities *cap, int y);
 
49
 
 
50
void output_capabilities(const struct Capabilities *cap);
 
51
 
 
52
#endif