summaryrefslogtreecommitdiff
path: root/README
blob: a4c587d8051f576ac2deb64b2678d7b25bf7a82f (plain)
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
evemu - Kernel device emulation

The evemu library and tools are used to describe devices, record
data, create devices and replay data from kernel evdev devices.

http://bitmath.org/code/evemu/
Please send patches to: patches@bitmath.org

evemu produces two different data formats, one for the device description
and one for the device event data. hex data is without a 0x prefix.

Device Description Format:
    # comments are allowed at the top of the file only
    # Only lines with # as first character are regonized
    N: <device name>
    I: <bustype (hex)> <vendor (hex)> <product (hex)> <version (hex)>
     --- for each kernel property (2.3.38 only) ---
    P: <byte 0 (hex)> <byte 1 (hex)> ... <byte 7 (hex)>
    P: <byte 8 (hex)> ...
     --- for each index from 0 to EV_CNT ---
    B: <index (hex)> <byte 0 (hex)> <byte 1 (hex)> ... <byte 7 (hex)>
    B: <index (hex)> <byte 8 (hex)> ...
     --- for each absolute axis ---
    A: <index (hex)> <min> <max> <fuzz> <flat>


Event Data Format:
    E: <sec>.<usec> <evtype (hex)> <evcode (hex)> <ev value>
where type, code and value are the respective fields of the
input_event struct defined in linux/input.h

---
Copyright (C) 2010 Henrik Rydberg <rydberg@euromail.se>
Copyright (C) 2010 Canonical Ltd.