-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME
108 lines (62 loc) · 2.65 KB
/
README
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
evmapd - An input event remapping daemon for Linux
Contents:
1. Introduction
2. Platforms
3. Setup
3.1. Compilation
3.2. Installation
3.3. Running
4. Credits
5. License
6. Authors
1. Introduction
evmapd is a daemon for the remapping of input events on Linux. It uses the evdev
interface to access an input device, such as a keyboard or a joystick, and then
the uinput interface to create a new, virtual device to which the altered events
are relayed.
It can be used to remap keys, buttons and axis, or to perform some more complex
translations between different event types, such as remapping the POV switches
of a joystick to sets of buttons.
In addition it incorporates an auto-calibration algorithm for ABS axis events,
which is relatively functional and may be useful for some joystick owners.
2. Platforms
Currently only the following platforms are supported:
* Linux 2.6.x
evmapd may work on Linux 2.4.x, but it has not been tested.
3. Setup
3.1. Compilation
A simple call to `make' is normally all you will need to compile evmapd:
$ make
You can override the CFLAGS variable to provide optimisation flags e.t.c. The
DEBUG variable can be used to enable debugging - if you are using gcc, setting
DEBUG to "-g" would probably do.
3.2. Installation
First verify with `make -n install' the installation paths. By default, the
installation prefix is /usr/local and the evmapd daemon binary is installed in
$(prefix)/sbin. You can set the prefix and bindir variables to override these
defaults. Then run `make install' as root to perform the actual installation:
# make install
3.3. Running
You will need the Linux kernel evdev and uinput interfaces to run evmapd. If
they have been compiled as modules, the following commands will ensure that
they are available:
# modprobe evdev
# modprobe uinput
In most cases you will have to be the root user to access the source device.
Run `evmapd -h' to see the various command line options. All you have to do
in most cases is:
$ evmapd -g -i <source device> [remapping options]
Note that all parameter arguments are numeric event codes - you cannot use
symbolic names. The evtest program can be used to determine the values that
correspond to each event.
You can create udev rules to automatically launch evmapd when some specific
devices are plugged in.
4. Credits
- Vojtech Pavlik, Rene van Paassen for the evtest program
5. License
evmapd is released under the GNU General Public License version 2. The full text
of the license can be found in the COPYING file that should be included in the
evmapd distribution.
6. Authors
Original author:
Theodoros V. Kalamatianos <[email protected]>