File: eventtable.h

package info (click to toggle)
triggerhappy 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 264 kB
  • sloc: ansic: 1,449; sh: 81; makefile: 53
file content (30 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright 2010 Stefan Tomanek <stefan.tomanek+th@wertarbyte.de>
 * You have permission to copy, modify, and redistribute under the
 * terms of the GPLv3 or any later version.
 * For full license terms, see COPYING.
 */

#include <linux/input.h>

#define EV_MAP( N ) [ N ] = #N

static const char *EV_NAME[EV_CNT] = {
#include "evtable_EV.inc"
};

static const char *KEY_NAME[KEY_CNT] = {
#include "evtable_KEY.inc"
#include "evtable_BTN.inc"
};

static const char *REL_NAME[REL_CNT] = {
#include "evtable_REL.inc"
};

static const char *ABS_NAME[ABS_CNT] = {
#include "evtable_ABS.inc"
};

static const char *SW_NAME[SW_CNT] = {
#include "evtable_SW.inc"
};