Lines Matching defs:key
72 unsigned key;
75 const struct key *k;
78 /* translate identifier to key code */
86 log_error("Unknown key identifier '%s'", keycode);
92 map.key = keycode_num;
94 log_debug("keyboard: mapping scan code %d (0x%x) to key code %d (0x%x)",
95 map.scan, map.scan, map.key, map.key);
98 log_error_errno(errno, "Error calling EVIOCSKEYCODE on device node '%s' (scan code 0x%x, key code %d): %m", devnode, map.scan, map.key);
202 const char *key;
205 key = udev_list_entry_get_name(entry);
206 if (startswith(key, "KEYBOARD_KEY_")) {
210 /* KEYBOARD_KEY_<hex scan code>=<key identifier string> */
211 scancode = strtoul(key + 13, &endptr, 16);
213 log_warning("Unable to parse scan code from \"%s\"", key);
238 } else if (startswith(key, "EVDEV_ABS_")) {
242 evcode = strtoul(key + 10, &endptr, 16);
244 log_warning("Unable to parse EV_ABS code from \"%s\"", key);
255 } else if (streq(key, "POINTINGSTICK_SENSITIVITY")) {
270 .help = "Keyboard scan code to key mapping",