We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb41241 commit 87c99f7Copy full SHA for 87c99f7
evdev/uinput.py
@@ -90,7 +90,10 @@ def __init__(
90
devnode="/dev/uinput",
91
phys="py-evdev-uinput",
92
input_props=None,
93
- max_effects=ecodes.FF_MAX_EFFECTS,
+ # CentOS 7 has sufficiently old headers that FF_MAX_EFFECTS is not defined there,
94
+ # which causes the whole module to fail loading. Fallback on a hardcoded value of
95
+ # FF_MAX_EFFECTS if it is not defined in the ecodes.
96
+ max_effects=ecodes.ecodes.get("FF_MAX_EFFECTS", 96),
97
):
98
"""
99
Arguments
0 commit comments