search for: any_keyboard

Displaying 1 result from an estimated 1 matches for "any_keyboard".

Did you mean: any_keyboards
2007 Sep 18
1
program to monitor USB keys
...FALSE (0) #define TRUE (1) /************************************************************ ** int main(int argc, char *argv[]) ** ************************************************************/ int main(int argc, char *argv[]) { int i; int fd; int bytes_read; int keycode; int done = FALSE; int any_keyboards; char *ptr; char *ptr_comma; #define MAX_KEY_WATCH (10) int fd[MAX_KEY_WATCH]; char input_name[200]; while(1) { done = FALSE; any_keyboards = FALSE; /* open all /dev/input/event devices */ for(i = 0; i < MAX_KEY_WATCH; i++) { sprintf(input_name, "/dev/input/even...