]> git.sesse.net Git - pistorm/blobdiff - input/input.c
Disable keyboard input for now
[pistorm] / input / input.c
index 0a7f53de4c4ac3020ec810c31092126ec5653dae..b0274e34366f08f4d6cb0aebb2467897e3a76d73 100644 (file)
@@ -4,19 +4,7 @@
 
 int kbhit()
 {
-  struct termios term;
-  tcgetattr(0, &term);
-
-  struct termios term2 = term;
-  term2.c_lflag &= ~ICANON;
-  tcsetattr(0, TCSANOW, &term2);
-
-  int byteswaiting;
-  ioctl(0, FIONREAD, &byteswaiting);
-
-  tcsetattr(0, TCSANOW, &term);
-
-  return byteswaiting > 0;
+  return 0;
 }
 
 extern int mouse_fd;