2
* Copyright (C) 2010, 2011 Canonical Ltd.
3
* Copyright (C) 2010 Henrik Rydberg <rydberg@euromail.se>
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.
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.
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/>.
22
#include <linux/uinput.h>
24
#define EVPLAY_NBITS KEY_CNT
25
#define EVPLAY_NBYTES ((EVPLAY_NBITS + 7) / 8)
29
char name[UINPUT_MAX_NAME_SIZE];
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];