2
evtypes.c - Event types used in Linux input system
3
Copyright (C) 2009 Tuomas Räsänen <tuos@codegrove.org>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 3 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
#include <linux/input.h>
23
static PyMethodDef evtypesMethods[] = {
27
PyMODINIT_FUNC initevtypes(void)
30
module = Py_InitModule3("evtypes", evtypesMethods,
31
"Event types used in Linux input system");
32
PyModule_AddIntMacro(module, EV_SYN);
33
PyModule_AddIntMacro(module, EV_KEY);
34
PyModule_AddIntMacro(module, EV_REL);
35
PyModule_AddIntMacro(module, EV_ABS);
36
PyModule_AddIntMacro(module, EV_MSC);
37
PyModule_AddIntMacro(module, EV_SW);
38
PyModule_AddIntMacro(module, EV_LED);
39
PyModule_AddIntMacro(module, EV_SND);
40
PyModule_AddIntMacro(module, EV_REP);
41
PyModule_AddIntMacro(module, EV_FF);
42
PyModule_AddIntMacro(module, EV_PWR);
43
PyModule_AddIntMacro(module, EV_FF_STATUS);
44
PyModule_AddIntMacro(module, EV_MAX);
45
PyModule_AddIntMacro(module, EV_CNT);