~oif-packaging/evemu/oneiric

« back to all changes in this revision

Viewing changes to src/evemu-impl.h

  • Committer: Francis Ginther
  • Date: 2012-08-20 16:17:58 UTC
  • mfrom: (0.1.32 1.0.5)
  • mto: (14.1.2 oneiric)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: francis.ginther@canonical.com-20120820161758-5ht9bd2rgdg3v6hj
Tags: upstream-1.0.5.1
ImportĀ upstreamĀ versionĀ 1.0.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010, 2011 Canonical Ltd.
3
 
 * Copyright (C) 2010 Henrik Rydberg <rydberg@euromail.se>
4
 
 *
5
 
 * This program is free software: you can redistribute it and/or modify it
6
 
 * under the terms of the GNU General Public License as published by the
7
 
 * Free Software Foundation, either version 3 of the License, or (at your
8
 
 * option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful, but
11
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
 * General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License along
16
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
 */
18
 
#ifndef _EVEMU_IMPL_H
19
 
#define _EVEMU_IMPL_H
20
 
 
21
 
#include <evemu.h>
22
 
#include <linux/uinput.h>
23
 
 
24
 
#define EVPLAY_NBITS    KEY_CNT
25
 
#define EVPLAY_NBYTES   ((EVPLAY_NBITS + 7) / 8)
26
 
 
27
 
struct evemu_device {
28
 
        unsigned int version;
29
 
        char name[UINPUT_MAX_NAME_SIZE];
30
 
        struct input_id id;
31
 
        unsigned char prop[EVPLAY_NBYTES];
32
 
        unsigned char mask[EV_CNT][EVPLAY_NBYTES];
33
 
        int pbytes, mbytes[EV_CNT];
34
 
        struct input_absinfo abs[ABS_CNT];
35
 
};
36
 
 
37
 
#endif