Open zhenyolka opened 7 years ago
I cannot test your environment by myself. So I don't know whether this approach is correct or not.
yaft always reads "STDIN_FILENO" as input. Maybe you need to use "/dev/input/event6" instead of "STDIN_FILENO".
if (check_fds(&fds, &tv, STDIN_FILENO, term.fd) == -1)
continue;
Data format of "/dev/input/event*" is completely different from stdin. You should convert raw keyboard event to ascii code before ewrite().
if ((size = read(STDIN_FILENO, buf, BUFSIZE)) > 0)
some_convert_function_here(buf, BUFSIZE);
ewrite(term.fd, buf, size);
good luck
Hello! Sorry for my English. I compile yaft terminal for arm, android(not android version, i compile linux version) Yaft work perfect, but i cant connect keyboard from /dev/input/event6 (it virtual framebuffer keyboard. keyboard work good). if i start keyboard in android terminal, android can use this keyboard(in settings keyboard display as hardware keyboard). How connect keyboard to your terminal.