Lines Matching refs:report
103 Hit return and the corresponding report will be sent by the
107 --caps-lock and hit return. A report is then sent by the
112 recv report:2
188 int keyboard_fill_report(char report[8], char buf[BUF_LEN], int *hold)
207 report[2 + key++] = kval[i].val;
216 report[2 + key++] = (tok[0] - ('a' - 0x04));
222 report[0] = report[0] | kmod[i].val;
241 int mouse_fill_report(char report[8], char buf[BUF_LEN], int *hold)
258 report[0] = report[0] | mmod[i].val;
266 report[1 + mvt++] = (char)strtol(tok, NULL, 0);
269 report[1 + mvt--] = 0;
292 int joystick_fill_report(char report[8], char buf[BUF_LEN], int *hold)
301 report[3] = 0x04;
310 report[3] = (report[3] & 0xF0) | jmod[i].val;
318 report[mvt++] = (char)strtol(tok, NULL, 0);
321 report[mvt--] = 0;
369 char report[8];
409 printf("recv report:");
416 memset(report, 0x0, sizeof(report));
425 memset(report, 0x0, sizeof(report));
427 to_send = keyboard_fill_report(report, buf, &hold);
429 to_send = mouse_fill_report(report, buf, &hold);
431 to_send = joystick_fill_report(report, buf, &hold);
436 if (write(fd, report, to_send) != to_send) {
441 memset(report, 0x0, sizeof(report));
442 if (write(fd, report, to_send) != to_send) {