Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68489e3d authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Only register key types with uinput that we can actually map

Bug: 20641307
Change-Id: I40cb1e22c35963429481a2cc9da897b5b2f554fe
parent 5d710d97
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -304,9 +304,6 @@ int uinput_create(char *name)
    for (x = 0; key_map[x].name != NULL; x++)
        ioctl(fd, UI_SET_KEYBIT, key_map[x].mapped_id);

    for(x = 0; x < KEY_MAX; x++)
        ioctl(fd, UI_SET_KEYBIT, x);

    if (ioctl(fd, UI_DEV_CREATE, NULL) < 0) {
        BTIF_TRACE_ERROR("%s Unable to create uinput device", __FUNCTION__);
        close(fd);