From a5a497fae1a35cf2b05f1d54b2ea1d8404840ba4 Mon Sep 17 00:00:00 2001 From: Irfan Date: Sat, 31 Mar 2018 19:32:41 +0530 Subject: [PATCH] Fix keyboard not working. Thanks: https://github.com/ingemaradahl/remote-input/commit/1e361fbe04e748788e8d86ce775c955bd572005b --- jni/suinput.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jni/suinput.c b/jni/suinput.c index f92e650..70730ee 100644 --- a/jni/suinput.c +++ b/jni/suinput.c @@ -101,6 +101,9 @@ int suinput_open(const char* device_name, const struct input_id* id) /* Configure device to handle all keys, see linux/input.h. */ for (i = 0; i < KEY_MAX; i++) { + if (i == BTN_TOUCH) { + continue; + } if (ioctl(uinput_fd, UI_SET_KEYBIT, i) == -1) { goto err; }