Lines Matching full:scancode
39 printf("scancode 0x%04x = %s (0x%02x)\\n", codes[0], p->name, codes[1]);
45 printf("scancode %d = '%c' (0x%02x)\\n", codes[0], codes[1], codes[1]);
47 printf("scancode %d = 0x%02x\\n", codes[0], codes[1]);
70 " %s <device> <scancode> <keycode>\\n"
105 char *scancode, *keycode, s[2048];
123 scancode=strtok(s,"\\n\\t =:");
124 if (!scancode) {
125 perror ("parsing input file scancode");
128 if (!strcasecmp(scancode, "scancode")) {
129 scancode = strtok(NULL,"\\n\\t =:");
130 if (!scancode) {
131 perror ("parsing input file scancode");
142 // printf ("parsing %s=%s:", scancode, keycode);
152 codes [0] = (unsigned) strtol(scancode, NULL, 0);
157 fprintf(stderr, "Setting scancode 0x%04x with 0x%04x via ",codes[0], codes[1]);
167 /* Get scancode table */