Add scancode reading capability to TTY
This commit is contained in:
parent
7de730afe4
commit
5230a36c2e
1 changed files with 4 additions and 0 deletions
|
@ -400,6 +400,10 @@ static int testscancodes(int fd)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf("try out some keys to find out whether SCANCODES works\n");
|
||||
printf("press CTRL+C to end this test\n");
|
||||
printf("please note that this test only works from a console tty\n");
|
||||
|
||||
/* perform test using stdin */
|
||||
if (testscancodes(STDIN_FILENO) < 0)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue