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

Commit d9ffc130 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 4270d8dc
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -307,9 +307,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);