Skip to content

Commit 3d8923f

Browse files
committed
Improve ecodes.py docstring
1 parent 9219ef1 commit 3d8923f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎evdev/ecodes.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# encoding: utf-8
22

33
'''
4-
This modules exposes the integer constants defined in ``linux/input.h``.
4+
This modules exposes the integer constants defined in ``linux/input.h`` and
5+
``linux/input-event-codes.h``.
56
67
Exposed constants::
78
89
KEY, ABS, REL, SW, MSC, LED, BTN, REP, SND, ID, EV,
910
BUS, SYN, FF, FF_STATUS
1011
11-
This module also provides numerous reverse and forward mappings that are best
12-
illustrated by a few examples::
12+
This module also provides reverse and forward mappings of the names and values
13+
of the above mentioned constants::
1314
1415
>>> evdev.ecodes.KEY_A
1516
30
@@ -29,7 +30,8 @@
2930
>>> evdev.ecodes.bytype[evdev.ecodes.EV_REL][0]
3031
'REL_X'
3132
32-
Values in reverse mappings may point to one or more ecodes. For example::
33+
Keep in mind that values in reverse mappings may point to one or more event
34+
codes. For example::
3335
3436
>>> evdev.ecodes.FF[80]
3537
['FF_EFFECT_MIN', 'FF_RUMBLE']

0 commit comments

Comments
 (0)