File: eventtable.h

package info (click to toggle)
triggerhappy 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 248 kB
  • ctags: 137
  • sloc: ansic: 1,397; sh: 81; makefile: 40
file content (22 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 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_MAX] = {
#include "evtable_EV.h"
};

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

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