Skip to content

Commit 71dcbe0

Browse files
committed
Set ff_effects_max to FF_EFFECTS_MAX in new uinput devices
Set ff_effects_max to FF_EFFECTS_MAX in new uinput devices, so it would be possible to create devices that emit various EV_FF events.
1 parent 34fe42c commit 71dcbe0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎evdev/uinput.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ uinput_setup(PyObject *self, PyObject *args) {
8989
uidev.id.version = version;
9090
uidev.id.bustype = bustype;
9191

92+
uidev.ff_effects_max = FF_MAX_EFFECTS;
93+
9294
len = PyList_Size(absinfo);
9395
for (i=0; i<len; i++) {
9496
// item -> (ABS_X, 0, 255, 0, 0, 0, 0)

0 commit comments

Comments
 (0)